Skip to content

Instantly share code, notes, and snippets.

@vidaaudrey
Created January 2, 2016 01:32
Show Gist options
  • Save vidaaudrey/ee7de00b393e240d8d63 to your computer and use it in GitHub Desktop.
Save vidaaudrey/ee7de00b393e240d8d63 to your computer and use it in GitHub Desktop.
ES6 webpack setup
var path = require('path');
module.exports = {
entry: [
'./src/index.js',
'./src/index.html'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: ''
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
include: path.join(__dirname, 'src')
},
{
test: /\.html$/,
loader: 'file?name=[name].[ext]'
},
{
test: /\.css$/,
loader: 'style!css'
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment