/webpack-4-react

Another React boilerplate with the latest `webpack` v4 ecosystem

Primary LanguageJavaScript

Webpack 4 React

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

Get Started

$ 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/

What's changed in the Webpack ecosystem?

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


!!! EXPERIMENTAL PROJECT, WORK IN PROGRESS... !!!