Skip to content

Instantly share code, notes, and snippets.

@glued
Created April 1, 2016 22:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glued/e600aec12968c3fec7cb7d95d1dbb74e to your computer and use it in GitHub Desktop.
Save glued/e600aec12968c3fec7cb7d95d1dbb74e to your computer and use it in GitHub Desktop.
{
"presets": ["es2015", "stage-0"]
}
'use strict'
const webpack = require('webpack');
module.exports = {
entry: ['babel-polyfill', './js/script.js'],
output: {
path: __dirname,
filename: './build/script.js'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
query: {
cacheDirectory: true,
presets: ['es2015', 'stage-0'],
plugins: [['transform-es2015-classes', {loose: true}]]
}
}
],
},
plugins: [
new webpack.DefinePlugin({'PROD_ENV': false}),
new webpack.NoErrorsPlugin()
],
stats: {
colors: true
},
devtool: 'source-map', // Create Sourcemaps for the bundle
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment