Library rewrite

This commit is contained in:
MoyuScript
2017-07-29 10:07:42 +08:00
parent b92d8cba24
commit 441d349948
70 changed files with 2521 additions and 3219 deletions

21
webpack.config.js Normal file
View File

@ -0,0 +1,21 @@
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
})
]
};