Skip to content
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

Merged
merged 3 commits into from
Sep 6, 2023
Merged

Clean up Webpack build #395

merged 3 commits into from
Sep 6, 2023

Conversation

basil
Copy link
Member

@basil basil commented Mar 22, 2023

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.

Comment on lines +27 to +28
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1",
Copy link
Member Author

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');
Copy link
Member Author

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');
Copy link
Member Author

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',
Copy link
Member Author

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.

Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@timja timja added the chore a PR that adds to maintenance - used by Release Drafter label Mar 23, 2023
@timja timja enabled auto-merge (squash) September 6, 2023 12:48
@timja timja merged commit 4a0bc22 into jenkinsci:master Sep 6, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore a PR that adds to maintenance - used by Release Drafter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants