Define browser build target as umd

This commit is contained in:
Niklas von Hertzen 2017-08-01 18:32:37 +08:00
parent 6f7a3145fe
commit 4f48bc9b0c

View File

@ -4,7 +4,8 @@ module.exports = {
entry: './src/index.js',
output: {
filename: './dist/html2canvas.js',
library: 'html2canvas'
library: 'html2canvas',
libraryTarget: 'umd'
},
module: {
loaders: [{