Created
April 5, 2017 19:43
-
-
Save barbier/45cfa638856e83e32d443aa8be402737 to your computer and use it in GitHub Desktop.
Simple Webpack config to use with React
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: [ | |
'./src/index.js' | |
], | |
output: { | |
path: __dirname, | |
filename: 'app/js/main.js' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.jsx?$/, | |
loader: 'babel-loader', | |
exclude: /node_modules/, | |
query: { | |
presets:['react', 'es2015'] | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment