Skip to content

Commit a385bc5

Browse files
committed
Add 'dev' script
Run webpack watcher and http-server from one terminal using the concurrently package.
1 parent 63b8c51 commit a385bc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"devDependencies": {
1212
"@types/react": "^0.14.39",
1313
"@types/react-dom": "^0.14.17",
14+
"concurrently": "^3.1.0",
1415
"mkdirp": "^0.5.1",
1516
"source-map-loader": "^0.1.5",
1617
"ts-loader": "^0.9.0",
@@ -19,7 +20,8 @@
1920
},
2021
"scripts": {
2122
"build": "webpack",
22-
"start": "http-server"
23+
"start": "http-server",
24+
"dev": "concurrently --kill-others --prefix [{name}] --names WEBPACK,HTTP \"webpack -wd\" \"http-server\""
2325
},
2426
"author": "Benny van Reeven",
2527
"license": "MIT"

0 commit comments

Comments
 (0)