From 328aa6c24919fef66c738b3e7ff93cb1f58136eb Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Sat, 7 Jan 2017 01:37:32 +0900 Subject: [PATCH] fix loader setting for webpack2 (#409) --- docs/en/configurations/advanced.md | 2 +- docs/en/configurations/extract-css.md | 2 +- docs/en/features/css-modules.md | 2 +- docs/en/features/postcss.md | 2 +- docs/en/options.md | 4 ++-- docs/en/workflow/linting.md | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/en/configurations/advanced.md b/docs/en/configurations/advanced.md index 749c42b0f..1f6667a08 100644 --- a/docs/en/configurations/advanced.md +++ b/docs/en/configurations/advanced.md @@ -40,7 +40,7 @@ module.exports = { rules: [ { test: /\.vue$/, - loader: 'vue', + loader: 'vue-loader', // vue-loader options goes here options: { loaders: { diff --git a/docs/en/configurations/extract-css.md b/docs/en/configurations/extract-css.md index b0701a04b..b1134406f 100644 --- a/docs/en/configurations/extract-css.md +++ b/docs/en/configurations/extract-css.md @@ -51,7 +51,7 @@ module.exports = { rules: [ { test: /\.vue$/, - loader: 'vue', + loader: 'vue-loader', options: { loaders: { css: ExtractTextPlugin.extract({ diff --git a/docs/en/features/css-modules.md b/docs/en/features/css-modules.md index 253095778..af9fb3d66 100644 --- a/docs/en/features/css-modules.md +++ b/docs/en/features/css-modules.md @@ -104,7 +104,7 @@ module: { rules: [ { test: '\.vue$', - loader: 'vue', + loader: 'vue-loader', options: { cssModules: { localIdentName: '[path][name]---[local]---[hash:base64:5]', diff --git a/docs/en/features/postcss.md b/docs/en/features/postcss.md index c088bbe1d..cb5c9e531 100644 --- a/docs/en/features/postcss.md +++ b/docs/en/features/postcss.md @@ -26,7 +26,7 @@ module.exports = { rules: [ { test: /\.vue$/, - loader: 'vue', + loader: 'vue-loader', // vue-loader options goes here options: { // ... diff --git a/docs/en/options.md b/docs/en/options.md index 6789e7c71..ccffacf70 100644 --- a/docs/en/options.md +++ b/docs/en/options.md @@ -22,7 +22,7 @@ module.exports = { rules: [ { test: /\.vue$/, - loader: 'vue', + loader: 'vue-loader', options: { // vue-loader options } @@ -145,7 +145,7 @@ module.exports = { rules: [ { test: /\.vue$/, - loader: 'vue', + loader: 'vue-loader', options: { buble: { // same options diff --git a/docs/en/workflow/linting.md b/docs/en/workflow/linting.md index 431047436..a88e55be2 100644 --- a/docs/en/workflow/linting.md +++ b/docs/en/workflow/linting.md @@ -79,13 +79,13 @@ module.exports = { { enforce: 'pre', test: /.vue$/, - loader: 'eslint', + loader: 'eslint-loader', exclude: /node_modules/ }, // but use vue-loader for all *.vue files { test: /.vue$/, - loader: 'vue' + loader: 'vue-loader' } ] }