Skip to content

Instantly share code, notes, and snippets.

@halfninja
Created July 8, 2015 11:27
Show Gist options
  • Save halfninja/76a12bb29b399f2dffaa to your computer and use it in GitHub Desktop.
Save halfninja/76a12bb29b399f2dffaa to your computer and use it in GitHub Desktop.
module.exports = {
cache: true,
devtool: 'source-map',
entry: './app/assets/js/main.js',
output: {
filename: './target/web/public/main/js/bundle.js'
},
resolve: {
extensions: ['', '.js', '.sjs'],
fallback: __dirname
},
module: {
loaders: [
{
test: /\.js?$/,
exclude: /(node-modules|webjars|node_modules|bower_components)/,
loader: 'babel'
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment