File tree 3 files changed +4
-15
lines changed
3 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 9
9
"build:play" : " vbuild --config play.config.js"
10
10
},
11
11
"devDependencies" : {
12
- "babel-loader" : " ^7.0.0" ,
13
- "babel-preset-es2015" : " ^6.24.1" ,
14
12
"vbuild" : " ^7.1.0" ,
15
13
"vue-loader" : " ^12.1.0" ,
16
14
"vue-play" : " ^3.2.1" ,
Original file line number Diff line number Diff line change @@ -33,19 +33,10 @@ module.exports = {
33
33
// the root folder of this package.
34
34
// You shouldn't do this in your project.
35
35
"vue-extract-loader" : require . resolve ( "../../" ) ,
36
- } ;
37
36
38
- config . module . rules . push ( {
39
- test : / .v u e $ / ,
40
- issuer : path . join ( __dirname , "play/index.js" ) ,
41
- use : [ {
42
- loader : "babel-loader" ,
43
- options : { presets : [ "es2015" ] }
44
- } , {
45
- loader : "vue-extract-loader" ,
46
- options : { block : "play" } ,
47
- } ] ,
48
- } ) ;
37
+ // You can alias the loader to avoid repeating the configuration query
38
+ "vue-play-loader" : "vue-extract-loader?block=play" ,
39
+ } ;
49
40
50
41
return config ;
51
42
} ,
Original file line number Diff line number Diff line change 1
- import "../src/colorful-button.vue" ;
1
+ import "vue-play-loader! ../src/colorful-button.vue" ;
You can’t perform that action at this time.
0 commit comments