webpack set mode to development
webpack --mode=development
webpack set mode to development
webpack --mode=development
webpack set development mode
//in webpack.config.js file add this
module.exports = {
....
mode: 'development',
....
};
set env production webpack build
// webpack.config.js
module.exports = env => {
const isProduction = env.NODE_ENV === 'production'
// ...
return {
// ...
}
}
// package.json
{
...
"scripts": {
"build": "webpack --env.NODE_ENV=production"
},
...
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us