File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Vue Loader's configuration is a bit different form other loaders. In addition to
12
12
13
13
``` js
14
14
// webpack.config.js
15
- const { VueLoaderPlugin } = require (' vue-loader' )
15
+ const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
16
16
17
17
module .exports = {
18
18
module: {
@@ -38,7 +38,7 @@ A more complete example webpack config will look like this:
38
38
``` js
39
39
// webpack.config.js
40
40
const path = require (' path' )
41
- const { VueLoaderPlugin } = require (' vue-loader' )
41
+ const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
42
42
43
43
module .exports = {
44
44
mode: ' development' ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly:
17
17
18
18
``` js
19
19
// webpack.config.js
20
- const { VueLoaderPlugin } = require (' vue-loader' )
20
+ const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
21
21
22
22
module .exports = {
23
23
// ...
You can’t perform that action at this time.
0 commit comments