Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created January 17, 2016 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/0c2dd688883c4c75e8ad to your computer and use it in GitHub Desktop.
Save chuck0523/0c2dd688883c4c75e8ad to your computer and use it in GitHub Desktop.
module.exports = {
devtool: 'inline-source-map',
entry: {
application: './src/javascripts/application.js',
},
output: {
path: '../app/assets/javascripts',
filename: '[name].js'
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel?presets[]=react,presets[]=es2015,presets[]=stage-2'
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment