html2canvas/webpack.config.js
Niklas von Hertzen 8a6fb5f733 Library rewrite
2017-08-01 00:25:58 +08:00

22 lines
429 B
JavaScript

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