Created
June 17, 2016 21:35
-
-
Save sampsonbryce/138e8f698e78c5fc92ca746ced4babf3 to your computer and use it in GitHub Desktop.
react webpack.config.js
This file contains hidden or 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 + "/src/js/container.jsx", | |
devtool: 'source-map', | |
output: { | |
path: __dirname + "/dist", | |
filename: "bundle.js" | |
}, | |
module: { | |
loaders: [{ | |
test: /\.jsx$/, | |
exclude: /node_modules/, | |
loader: "babel-loader", | |
query: { | |
presets: ['es2015', 'react'] | |
} | |
}] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment