simple webpack config
nodejs
- html
- sass
- js-native
- babel-loader
- style-loader
- css-loader
- sass-loader
- mini-css-extract-plugin
- html-webpack-plugin
- clean-webpack-plugin
npm run ...
linux | windows |
---|---|
dev | dev_win |
build | build_win |
webpack-dev-server
development (sets by NODE_ENV=development)
- --config (with webpack.config.js)
- --open
webpack
production (sets by NODE_ENV=development)
- --config (with webpack.config.js)