🍴 Starter with Babel.js and Webpack
- ✅ Webpack
v4.42.1 - ✅ Babel (Core)
v7.9.0 - ✅ Support syntax
ES2015+ - ✅ Static directory
dist/ - ✅ Development with
webpack-dev-server - ✅ Hosting with
http-server - ✅ Analysis of bundle file weight (
source-map-explorer) - ✅ Two build strategies: dev (with source maps) & prod (compress file)
You can start in two ways:
mkdir PROJECT_NAME
cd $_ # Note: "$_" is last argument of previous command
git init # Note: branch "master" is created
git remote add boilerplate git@github.com:piecioshka/boilerplate-babel-webpack.git
git pull boilerplate master
git remote remove boilerplateor ...
- Download package file:
https://github.com/piecioshka/boilerplate-babel-webpack/archive/master.zip - Extract it to your project directory.
-
development
npm run build
-
production
npm run build:production
Open dist/ directory in browser by npm start.
npm run dev # use webpack-dev-server
npm run watch # use webpack -wOpen dist/ directory in browser by npm start.
If you would like to remove dist/ directory:
npm run clearIf you would like to remove node_modules/ and remove dist/
npm run clear:allIf you would like to know how many lines of code you write:
npm run countIf you would like to check how much a bundle file weight:
npm run build
npm run auditThe MIT License @ 2017