Another client-side rendering React boilerplate with the latest webpack
v4 ecosystem
New libraries used such as:
webpack-command
webpack-serve
mini-css-extract-plugin
optimize-css-assets-webpack-plugin
- see
package.json
for full list
$ git clone https://github.com/bodaz/webpack-4-react.git
$ cd webpack-4-react/
$ yarn
# to start development server
$ yarn run serve
# to build
$ yarn run build
React app is live at http://localhost:8080/
Webpack CLI
Use webpack-command
instead of webpack-cli
Developement Server
Use webpack-serve
instead of webpack-dev-server
Build/Minify SCSS Files
Use mini-css-extract-plugin
and optimize-css-assets-webpack-plugin
instead of extract-text-webpack-plugin