-
Notifications
You must be signed in to change notification settings - Fork 31
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
[No JIRA]SplitChunks remove name and SubresourceIntegrityPlugin use new import syntax #146
Conversation
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.
Glad that SplitChunk
issue has been solved, here it only needs small changes.
: {}, | ||
} | ||
: {}, | ||
}; |
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.
Good to use some common code to implement this functionality, no need to have a deep structure of code.
@@ -4,23 +4,34 @@ const paths = require('../config/paths'); | |||
const appPackageJson = require(paths.appPackageJson); | |||
const bpkReactScriptsConfig = appPackageJson['backpack-react-scripts'] || {}; | |||
|
|||
module.exports = (isEnvDevelopment) => { | |||
module.exports = isEnvDevelopment => { |
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.
Is this formation changed by husky
hooks when executing git
commands?
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 due to formatting the document, and I will restore it.
@@ -1,6 +1,6 @@ | |||
"use strict"; | |||
|
|||
const SubresourceIntegrityPlugin = require("webpack-subresource-integrity"); | |||
const { SubresourceIntegrityPlugin } = require("webpack-subresource-integrity"); |
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.
Migrate v1 to v5 use new import syntax, see here.
} | ||
: { | ||
...chunksAndGroups, | ||
name: false, |
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.
what is the chunk name looks like for both the name: false and without name case?
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.
Splitchunks: in webpack5, optimization.splitChunks name: true removed: Automatic names are no longer supported, see here.
sriEnabled: migrate v1 to v5 use new import syntax, see here.
change files:
name
when development is tureconst SubresourceIntegrityPlugin = require("webpack-subresource-integrity");
toconst { SubresourceIntegrityPlugin } = require("webpack-subresource-integrity")