- React 16.4.2
- Webpack 4.16.2
npm install
- from the project root, run
npm run develop
. Webpack dev server will be launched at [http://localhost:2000] - webpack-bundle-analyzer will generate
report.html
after each build
npm run build
will produce two sets of production files in the /dist directory, one of which is gzipped. If this behavior is not desired, comment out the references to compression-webpack-plugin in webpack.config.js. You can also elect to only produce gzipped files if you set deleteOriginalAssets
to true in the plugin's config.
npm run preview
will run the build, start a http-server at [http://localhost:8080], and open your web browser; you may need to follow the /dist
link manually.
SCSS is in use on this project, along with CSS Modules. See webpack.config.js for configuration.
Autoprefixer is in the build pipeline, so there is no need to use vendor prefixes. CSS is further processed with cssnano during non-development builds.
More or less follows Airbnb’s style guide. See .eslintrc for details.