-
Notifications
You must be signed in to change notification settings - Fork 0
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
webpack init #1
Conversation
package.json
Outdated
"description": "", | ||
"private": true, | ||
"scripts": { | ||
"dev": "cross-env NODE_ENV=development webpack-dev-server --mode development --open", |
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.
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.
webpack.config.js
Outdated
splitChunks: { | ||
// chunks: "all", | ||
cacheGroups: { | ||
commons: { |
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.
Doesn't, probably, make much sense for development mode.
webpack.config.js
Outdated
{ from: "static", to: "static" } | ||
], | ||
}), | ||
new MiniCssExtractPlugin({ |
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.
You, probably, shouldn't even include this in development mode.
No description provided.