html2canvas/webpack.config.js
2017-08-01 18:32:37 +08:00

23 lines
459 B
JavaScript

const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
filename: './dist/html2canvas.js',
library: 'html2canvas',
libraryTarget: 'umd'
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}]
},
plugins: [
new webpack.DefinePlugin({
'__DEV__': true
})
]
};