Skip to content

Instantly share code, notes, and snippets.

@15Dkatz
Created February 4, 2017 20:28
Show Gist options
  • Save 15Dkatz/74ce0d5fb3b1982681973af2b59d8bcc to your computer and use it in GitHub Desktop.
Save 15Dkatz/74ce0d5fb3b1982681973af2b59d8bcc to your computer and use it in GitHub Desktop.
webpack configuration for webpack-es6-boilerplate
module.exports = {
entry: ['babel-polyfill', './app/index.js'],
output: {
path: __dirname + '/build',
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.js$/, // a regular expression that catches .js files
exclude: /node_modules/,
loader: 'babel-loader'
}
]
},
devServer: {
port: 3000, // most common port
contentBase: './build',
inline: true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment