-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up Webpack build #395
Conversation
"webpack": "^5.76.3", | ||
"webpack-cli": "^5.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrading to the latest versions.
@@ -0,0 +1,6 @@ | |||
const { merge } = require('webpack-merge'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As recommended in the documentation.
@@ -0,0 +1,7 @@ | |||
const { merge } = require('webpack-merge'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As recommended in the documentation.
|
||
module.exports = merge(common, { | ||
mode: 'development', | ||
devtool: 'inline-source-map', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a critical line. Without this line, it is impossible to do in situ debugging in the browser.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Adapts to the best practices recommended for Development and Production. Untested in this repository, but similar changes were successfully tested in Pipeline: Groovy and Job DSL.