Created
May 5, 2016 13:04
-
-
Save witnessmenow/46c0d7cacd60704269966741d171b8f1 to your computer and use it in GitHub Desktop.
Example dev webpack configuration for wrapping react modules
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: './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