Skip to content

Commit 289e43f

Browse files
committed
update dev script
1 parent fb3e727 commit 289e43f

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

build/webpack.dev.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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: /.js/,
13+
exclude: /node_modules/,
14+
loader: 'babel?optional[]=runtime'
15+
}
16+
]
17+
}
18+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A router for Vue.js",
55
"main": "lib/index.js",
66
"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",
88
"lint": "eslint src build test/e2e test/unit/specs",
99
"unit": "./node_modules/karma/bin/karma start build/karma.config.js",
1010
"build": "babel ./src --optional runtime --out-dir lib && webpack --config build/webpack.build.dev.config.js && webpack --config build/webpack.build.min.config.js",

0 commit comments

Comments
 (0)