π΄ Starter with Babel.js and Webpack
- β Webpack v4.29.6
- β Babel v7.3.4
- β Support syntax ES2015 & ES2016 & ES2017 & ES2018
- β
Static directory:
public/
- β Source Map of bundle file.
- β Analysis of bundle file weight.
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 boilerplate
or ...
- Download package file:
https://github.com/piecioshka/boilerplate-babel-webpack/archive/master.zip - Extract it to your project directory.
npm install
npm run build
# Open public/ directory in browser
Your source will be minified.
npm install
npm run watch
# Open public/ directory in browser
If you would like to remove public/dist
directory (created by Webpack):
npm run clear
If you would like to remove node_modules/
and remove public/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 audit
The MIT License @ 2017