html2canvas/webpack.config.js

23 lines
459 B
JavaScript
Raw Normal View History

2017-07-29 05:07:42 +03:00
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
filename: './dist/html2canvas.js',
2017-08-01 13:32:37 +03:00
library: 'html2canvas',
libraryTarget: 'umd'
2017-07-29 05:07:42 +03:00
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}]
},
plugins: [
new webpack.DefinePlugin({
'__DEV__': true
})
]
};