This is a boilerplate starter project featuring Webpack 5 bundler and Foundation for sites 6 framework. The features include:
- Webpack 6
- Auto-reload on changes
- Development & Production configurations
- Babel
- Sass
- Postcss with Autoprefixer
- jQuery
- JS, CSS minify
- Chunk splitting
Make sure you have the latest Stable or LTS version (min v16.x.x) of Node.js installed.
git clone https://github.com/rpajo/webpack-foundation-boilerplate.git
of clickUse this template
- Run
npm install
oryarn install
- Start the development server using
npm run serve
- Open http://localhost:9000
npm run serve
- Run the live-reload development servernpm run build
- Build the production bundle
The foundation sass variable settings file public/style/_foundation-settings.scss
has been added to the project folder for convenience. You can use these variable to customize your theme.
The production and development configurations are located in webpack.config.prod.js
and webpack.config.dev.js
respectively.
The configs use some common plugins and loaders. The development bundler also runs the BundleAnalyzerPlugin
. You can of course tweak the imports/plugins/loaders to your liking.
Licensed under the MIT license.