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
``` js
// webpack.config.js
const { VueLoaderPlugin } = require('vue-loader')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
module: {
......@@ -38,7 +38,7 @@ A more complete example webpack config will look like this:
``` js
// webpack.config.js
const path = require('path')
const { VueLoaderPlugin } = require('vue-loader')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
mode: 'development',
......
......@@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly:
``` js
// webpack.config.js
const { VueLoaderPlugin } = require('vue-loader')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
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