Skip to content

Commit 77ba7b6

Browse files
committed
Update webpack cli path and sourcemap name
1 parent 5366ad5 commit 77ba7b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { spawn } = require('child_process');
55

66
const webpackConfig = path.resolve(__dirname, 'webpack.config.js')
77

8-
spawn(`${__dirname}/node_modules/webpack-dev-server/bin/webpack-dev-server.js --config ${webpackConfig} --open`, [], {
8+
spawn(`${__dirname}/node_modules/webpack/bin/webpack.js serve --config ${webpackConfig} --open`, [], {
99
shell: true,
1010
stdio: 'inherit'
1111
});

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
}
5050
]
5151
},
52-
devtool: 'cheap-module-eval-source-map',
52+
devtool: 'eval-cheap-module-source-map',
5353
plugins: [
5454
new webpack.ProvidePlugin({
5555
React: require.resolve('react'),

0 commit comments

Comments
 (0)