Created
May 12, 2015 04:53
-
-
Save zackify/861d6ed399f2ffa55c7d to your computer and use it in GitHub Desktop.
ES6 classes and module loading is too easy with webpack:)
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: { | |
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