npm install -g webpack
: to install webpack
webpack --watch
: watch changes in the script.
webpack.config.js
: config the routes to compile the code
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1"
}