Skip to content

Commit

Permalink
Update webpack cli path and sourcemap name
Browse files Browse the repository at this point in the history
  • Loading branch information
mesaugat committed Jan 13, 2021
1 parent 5366ad5 commit 77ba7b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { spawn } = require('child_process');

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

spawn(`${__dirname}/node_modules/webpack-dev-server/bin/webpack-dev-server.js --config ${webpackConfig} --open`, [], {
spawn(`${__dirname}/node_modules/webpack/bin/webpack.js serve --config ${webpackConfig} --open`, [], {
shell: true,
stdio: 'inherit'
});
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = {
}
]
},
devtool: 'cheap-module-eval-source-map',
devtool: 'eval-cheap-module-source-map',
plugins: [
new webpack.ProvidePlugin({
React: require.resolve('react'),
Expand Down

0 comments on commit 77ba7b6

Please sign in to comment.