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

webpack init #1

Merged
merged 2 commits into from Sep 21, 2021
Merged

webpack init #1

merged 2 commits into from Sep 21, 2021

Conversation

manhengest
Copy link
Owner

No description provided.

package.json Outdated
"description": "",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --mode development --open",

Choose a reason for hiding this comment

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

You should bear in mind that cross-env is no longer developed, which may be the reason of its declined popularity, so you may opt for corresponding command-line parameter, consider alternative solution or expose webpack config as a function and pass current mode as a command line parameter.

splitChunks: {
// chunks: "all",
cacheGroups: {
commons: {

Choose a reason for hiding this comment

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

Doesn't, probably, make much sense for development mode.

{ from: "static", to: "static" }
],
}),
new MiniCssExtractPlugin({

Choose a reason for hiding this comment

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

You, probably, shouldn't even include this in development mode.

@manhengest manhengest merged commit fd88024 into master Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants