Created
June 23, 2015 08:56
-
-
Save chodorowicz/e8bbd0a10b669db5e730 to your computer and use it in GitHub Desktop.
webpack react babel config
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
module.exports = { | |
entry: [ __dirname + '/app/js/main.jsx'], | |
output: { | |
path: __dirname + '/web', | |
filename: 'bundle.js' | |
}, | |
module: { | |
loaders: [{ | |
test: /\.jsx?$/, | |
exclude: /(node_modules|bower_components)/, | |
loader: 'babel' | |
}] | |
}, | |
resolve: { | |
extensions: ['', '.js', '.jsx'] | |
}, | |
devtool: "#inline-source-map", | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment