Created
January 5, 2017 20:42
-
-
Save SanthoshVijayabaskar/44653556270888883d4ad70026b2b57b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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