🍴 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 [email protected]:piecioshka/boilerplate-babel-webpack.git
git pull boilerplate master
git remote remove boilerplate
or ...
- 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 -w
Open dist/
directory in browser by npm start
.
If you would like to remove dist/
directory:
npm run clear
If you would like to remove node_modules/
and remove dist/
npm run clear:all
If you would like to know how many lines of code you write:
npm run count
If you would like to check how much a bundle file weight:
npm run build
npm run audit
The MIT License @ 2017