Commit ecd66a5f authored by Evan You's avatar Evan You

docs: use less confusing plugin require

parent 0e5aac72
...@@ -12,7 +12,7 @@ Vue Loader's configuration is a bit different form other loaders. In addition to ...@@ -12,7 +12,7 @@ Vue Loader's configuration is a bit different form other loaders. In addition to
``` js ``` js
// webpack.config.js // webpack.config.js
const { VueLoaderPlugin } = require('vue-loader') const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = { module.exports = {
module: { module: {
...@@ -38,7 +38,7 @@ A more complete example webpack config will look like this: ...@@ -38,7 +38,7 @@ A more complete example webpack config will look like this:
``` js ``` js
// webpack.config.js // webpack.config.js
const path = require('path') const path = require('path')
const { VueLoaderPlugin } = require('vue-loader') const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = { module.exports = {
mode: 'development', mode: 'development',
......
...@@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly: ...@@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly:
``` js ``` js
// webpack.config.js // webpack.config.js
const { VueLoaderPlugin } = require('vue-loader') const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = { module.exports = {
// ... // ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment