Commit 434357c 1 parent 7af8db4 commit 434357c Copy full SHA for 434357c
File tree 6 files changed +8
-8
lines changed
6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Vue Loader's configuration is a bit different from other loaders. In addition to
26
26
27
27
``` js
28
28
// webpack.config.js
29
- const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
29
+ const { VueLoaderPlugin } = require (' vue-loader' )
30
30
31
31
module .exports = {
32
32
module: {
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/lib/plugin ' )
20
+ const { VueLoaderPlugin } = require (' vue-loader' )
21
21
22
22
module .exports = {
23
23
// ...
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ npm install -D vue-loader vue-template-compiler
26
26
27
27
``` js
28
28
// webpack.config.js
29
- const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
29
+ const { VueLoaderPlugin } = require (' vue-loader' )
30
30
31
31
module .exports = {
32
32
module: {
@@ -51,7 +51,7 @@ module.exports = {
51
51
52
52
``` js
53
53
// webpack.config.js
54
- const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
54
+ const { VueLoaderPlugin } = require (' vue-loader' )
55
55
56
56
module .exports = {
57
57
mode: ' development' ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Vue Loader v15 теперь для правильной работы требу
17
17
18
18
``` js
19
19
// webpack.config.js
20
- const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
20
+ const { VueLoaderPlugin } = require (' vue-loader' )
21
21
22
22
module .exports = {
23
23
// ...
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Vue Loader 的配置和其它的 loader 不太一样。除了通过一条规则
26
26
27
27
``` js
28
28
// webpack.config.js
29
- const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
29
+ const { VueLoaderPlugin } = require (' vue-loader' )
30
30
31
31
module .exports = {
32
32
module: {
@@ -51,7 +51,7 @@ module.exports = {
51
51
52
52
``` js
53
53
// webpack.config.js
54
- const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
54
+ const { VueLoaderPlugin } = require (' vue-loader' )
55
55
56
56
module .exports = {
57
57
mode: ' development' ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Vue Loader v15 现在需要配合一个 webpack 插件才能正确使用:
17
17
18
18
``` js
19
19
// webpack.config.js
20
- const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
20
+ const { VueLoaderPlugin } = require (' vue-loader' )
21
21
22
22
module .exports = {
23
23
// ...
You can’t perform that action at this time.
0 commit comments