Define browser build target as umd

This commit is contained in:
MoyuScript 2017-08-01 18:32:37 +08:00
parent 7d255bc42b
commit 6c6e88f251

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: [{