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"
},
...
}
Also in JavaScript:
- devextreme custom field
- vector
- spreadjs autofit column with minimum
- javascript percent to int
- use node js to check if a json file exists
- percentatge difference between two numbers javascript
- how to update angular version
- http-proxy-middleware option.onProxyReq:
- use of this keyword in js
- javascript append how first element
- adding numbers in an array javascript
- capture time in javascript
- js replace all substrings
- convert timestamp to date js
- export default function react
- snackbar in react
- or operator js
- javascript get current url
- javascript format currency
- mongoose connection nodejs
- js switch case
- loop through object js
- javascript set select option
- copy to clipboard angular