Skip to content

Commit cefc6fc

Browse files
committed
Use the webpack dev server to serve the examples page
1 parent 5050afe commit cefc6fc

File tree

2 files changed

+879
-45
lines changed

2 files changed

+879
-45
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"build:es6": "cross-env BABEL_ENV=es6 babel src --out-dir es6",
3232
"build:examples": "yarn clean:examples && yarn build:dev",
3333
"build:dev": "cross-env BABEL_ENV=es6 webpack --config examples/webpack.config.js --progress --profile",
34-
"start": "yarn build:examples && yarn start:server",
35-
"start:server": "http-server public -p 3000",
34+
"start": "webpack serve --config examples/webpack.config.js",
3635
"prepublishOnly": "yarn build"
3736
},
3837
"author": "Vivek Kumar Bansal <[email protected]>",
@@ -90,7 +89,8 @@
9089
"rimraf": "~3.0.0",
9190
"style-loader": "~3.3.1",
9291
"webpack": "5.72.0",
93-
"webpack-cli": "^4.9.2"
92+
"webpack-cli": "^4.9.2",
93+
"webpack-dev-server": "^4.8.1"
9494
},
9595
"jest": {
9696
"setupFilesAfterEnv": [

0 commit comments

Comments
 (0)