Skip to content

Instantly share code, notes, and snippets.

@SanthoshVijayabaskar
Created January 5, 2017 20:42
Show Gist options
  • Save SanthoshVijayabaskar/44653556270888883d4ad70026b2b57b to your computer and use it in GitHub Desktop.
Save SanthoshVijayabaskar/44653556270888883d4ad70026b2b57b to your computer and use it in GitHub Desktop.
var path = require('path');
module.exports = {
entry: "./app.js",
output: {
filename: "./bundle.js",
sourceMapFilename: "./bundle.map"
},
devtool: '#source-map',
module: {
loaders: [
{
loader: 'babel',
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
query: {
presets: ['react', 'es2015', 'stage-2']
}
}
]
},
resolve: {
root: path.resolve('./app'),
extenstions: ['', '.js']
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment