Skip to content

Instantly share code, notes, and snippets.

@witnessmenow
Created May 5, 2016 13:04
Show Gist options
  • Save witnessmenow/46c0d7cacd60704269966741d171b8f1 to your computer and use it in GitHub Desktop.
Save witnessmenow/46c0d7cacd60704269966741d171b8f1 to your computer and use it in GitHub Desktop.
Example dev webpack configuration for wrapping react modules
module.exports = {
entry: './wrapper.js',
output: {
libraryTarget: 'var',
library: 'showChatTemplate',
path: 'builds',
filename: 'chat-template.js',
},
module: {
loaders: [
{
test: /\.js/,
loader: 'babel',
include: __dirname,
}
],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment