Skip to content

Commit debd449

Browse files
author
zhuqianye
committed
webpack-dev hot-load
1 parent 24d2223 commit debd449

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

the_last_webpack/app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
alert("test");
1+
alert("test2");

the_last_webpack/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"main": "main.js",
66
"scripts": {
7-
"build": "webpack --config ./webpack.config.js"
7+
"build": "webpack --config ./webpack.config.js",
8+
"dev": "webpack-dev-server --devtool eval-source-map --progress --content-base ./build"
89
},
910
"author": "",
1011
"license": "ISC",

0 commit comments

Comments
 (0)