File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ entry : './src/index.js' ,
3
+ output : {
4
+ path : './dist' ,
5
+ filename : 'vue-router.js' ,
6
+ library : 'VueRouter' ,
7
+ libraryTarget : 'umd'
8
+ } ,
9
+ module : {
10
+ loaders : [
11
+ {
12
+ test : / .j s / ,
13
+ exclude : / n o d e _ m o d u l e s / ,
14
+ loader : 'babel?optional[]=runtime'
15
+ }
16
+ ]
17
+ }
18
+ }
Original file line number Diff line number Diff line change 4
4
"description" : " A router for Vue.js" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
7
- "dev" : " npm run serve & npm run serve-test" ,
7
+ "dev" : " npm run serve & npm run serve-test & webpack --watch --config build/webpack.dev.config.js " ,
8
8
"lint" : " eslint src build test/e2e test/unit/specs" ,
9
9
"unit" : " ./node_modules/karma/bin/karma start build/karma.config.js" ,
10
10
"build" : " babel ./src --optional runtime --out-dir lib && webpack --config build/webpack.build.dev.config.js && webpack --config build/webpack.build.min.config.js" ,
You can’t perform that action at this time.
0 commit comments