Skip to content

Instantly share code, notes, and snippets.

@zackify
Created May 12, 2015 04:53
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackify/861d6ed399f2ffa55c7d to your computer and use it in GitHub Desktop.
Save zackify/861d6ed399f2ffa55c7d to your computer and use it in GitHub Desktop.
ES6 classes and module loading is too easy with webpack:)
module.exports = {
entry: {
jobs: 'app.jsx'
},
output: {
filename: "[name].bundle.js",
chunkFilename: "[id].bundle.js"
},
module: {
loaders: [
{
test: /\.jsx$/,
loader: 'babel-loader'
}
]
},
resolve: {
extensions: ['', '.js', '.jsx']
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment