Baseline configuration for Webpack
Takes HTML, CSS, and JS files (web/
) and compiles them (public/
) using Webpack. This is the webpack.config.js that I usually start with in new projects.
You get these out of the box:
- Modern JavaScript (Babel)
- Modern CSS (PostCSS & cssnext)
- Development server (WebpackDevServer)
- Automatic browser reloading (LiveReloadPlugin)
- CSS linting (Stylelint)
- Plain HTML & images
Optional features (see EXTRAS.md):
- Sass
- React hot module reloading
You can use the automated installer script to unpack the files:
# Extracts to the current directory
curl -sSL https://raw.githubusercontent.com/rstacruz/webpack-starter-kit/master/_extras/install.sh > /tmp/webpack-starter-kit.sh; bash /tmp/webpack-starter-kit.sh
If you're allergic to downloaded Bash scripts, check the simple installer.
This kit is updated whenever I find something good to add; see HISTORY.md for a change log.
webpack-starter-kit © 2016-2017, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz