Skip to content

Instantly share code, notes, and snippets.

@abhirathore2006
Created July 30, 2016 10:25
Show Gist options
  • Save abhirathore2006/d75cefd14ee917a23bc33a799d869f72 to your computer and use it in GitHub Desktop.
Save abhirathore2006/d75cefd14ee917a23bc33a799d869f72 to your computer and use it in GitHub Desktop.
#webpack arguments
--display-modules shows list of modules
--profile --json > stats.json --output stats.json to use at http://webpack.github.io/analyse/
##Babel polyfill to support es6
import "babel-polyfill";
With webpack.config.js, add babel-polyfill to your entry array:
module.exports = {
entry: ['babel-polyfill', './app/js']
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment