webpack-es6-sass-boilerplate
webpack-es6-sass-boilerplate copied to clipboard
A minimalistic webpack 4 based boilerplate for building web apps
Webpack ES6+ Sass Boilerplate

A minimalistic webpack 4 based boilerplate for building web apps.
What’s included?
- Webpack 4 JavaScript module bundler
- Babel 7 compiler ES6+ code into a backwards compatible version of JavaScript
- SASS preprocessor for CSS
- Autoprefixer for vendor prefixes (browser compability)
- Eslint JavaScript linter
- Stylelint CSS/SASS linter
- Prettier an opinionated code formatter
- lint-staged run linting and formatting your files that are marked as "staged" via
git addbefore you commit.
Getting started
- clone the repo via
git clone https://github.com/vadimmarkov/webpack-es6-sass-boilerplate.git cd webpack-es6-sass-boilerplate- run
npm installto fetch all the dependencies - run
npm run startto start the webpack-dev-server (localhost:8080will be opened automatically) - start developing
- when you are done, run
npm run buildto get the production version of your app
Commands
start- start the dev serverbuild- create build inbuildfolderanalyze- analyze your production bundlelint-code- run an ESLint checklint-style- run a Stylelint checkcheck-eslint-config- check if ESLint config contains any rules that are unnecessary or conflict with Prettiercheck-stylelint-config- check if Stylelint config contains any rules that are unnecessary or conflict with Prettier