Skip to content

rpajo/webpack-foundation-boilerplate

Repository files navigation

Webpack 5 + Foundation for sites 6 Boilerplate

Description

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

Usage

Make sure you have the latest Stable or LTS version (min v16.x.x) of Node.js installed.

  1. git clone https://github.com/rpajo/webpack-foundation-boilerplate.git of click Use this template
  2. Run npm install or yarn install
  3. Start the development server using npm run serve
  4. Open http://localhost:9000

Available Commands

  • npm run serve - Run the live-reload development server
  • npm run build - Build the production bundle

Foundation Costumization

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.

Notes

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.

License

Licensed under the MIT license.