Last active
August 9, 2016 12:32
-
-
Save lastlegion/81c1f54be492c91b856f to your computer and use it in GitHub Desktop.
Minimal webpack config to get started with React and ES2015
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: "./public/javascripts/src/App.jsx", //entry point of your app | |
output: { | |
filename: "./public/javascripts/build/bundle.js" //output transpiled and compiled code | |
}, | |
module: { | |
loaders:[ | |
{ | |
test: /\.js[x]?$/, //list of extensions | |
exclude: /node_modules/, | |
loader: "babel?presets[]=react&presets=es2015" | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment