https://github.com/lgraubner/webpack-boilerplate-general
Simple Webpack Boilerplate
https://github.com/lgraubner/webpack-boilerplate-general
webpack webpack-boilerplate
Last synced: 8 days ago
JSON representation
Simple Webpack Boilerplate
- Host: GitHub
- URL: https://github.com/lgraubner/webpack-boilerplate-general
- Owner: lgraubner
- License: mit
- Created: 2016-10-17T07:18:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T11:07:41.000Z (about 9 years ago)
- Last Synced: 2025-08-30T17:48:53.231Z (10 months ago)
- Topics: webpack, webpack-boilerplate
- Language: JavaScript
- Size: 168 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# General purpose Webpack boilerplate
This Webpack can be used with Wordpress, Hugo or whatever comes into you mind. The following features are included:
- Asset cache busting
- [SASS](http://sass-lang.com/) support
- [Autoprefixing](https://github.com/postcss/autoprefixer)
- Es2016 transpiling with [Babel](https://babeljs.io/)
- Linting with [ESLint](http://eslint.org/)
- [Prettier](https://github.com/prettier/prettier) for consistent formatting
- Automatic browser reloading in dev mode
## Usage
```Bash
# clone project
git clone https://github.com/lgraubner/webpack-boilerplate-general.git
cd webpack-boilerplate-general
# initialize new git workspace
rm -rf .git
git init
# install dependencies
yarn install
# start dev server
yarn run dev
```
To build a production bundle execute `yarn run build`. This will create the files and an `assets.json`. Read the filenames from here as those may change for cache busting.