Skip to content

Commit 8669732

Browse files
authored
Use webpack-dev-server instead of http-server (Merge PR #53)
2 parents 5050afe + d89cd77 commit 8669732

File tree

3 files changed

+875
-124
lines changed

3 files changed

+875
-124
lines changed

examples/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const config = {
1616
path: path.resolve(__dirname, '../public'),
1717
publicPath: DEV ? '/' : '/react-contextmenu/',
1818
hashDigestLength: 6,
19-
sourceMapFilename: 'bundle.js.map'
2019
},
2120
resolve: {
2221
modules: [

package.json

Lines changed: 3 additions & 4 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]>",
@@ -80,7 +79,6 @@
8079
"eslint-plugin-testing-library": "^5.2.1",
8180
"history": "~5.3.0",
8281
"html-webpack-plugin": "~5.5.0",
83-
"http-server": "~14.1.0",
8482
"jest": "~27.5.1",
8583
"mini-css-extract-plugin": "^2.6.0",
8684
"prop-types": "~15.8.1",
@@ -90,7 +88,8 @@
9088
"rimraf": "~3.0.0",
9189
"style-loader": "~3.3.1",
9290
"webpack": "5.72.0",
93-
"webpack-cli": "^4.9.2"
91+
"webpack-cli": "^4.9.2",
92+
"webpack-dev-server": "^4.8.1"
9493
},
9594
"jest": {
9695
"setupFilesAfterEnv": [

0 commit comments

Comments
 (0)