pdf.js/examples/webpack/webpack.config.js
2015-12-21 13:46:50 -06:00

21 lines
410 B
JavaScript

var webpack = require('webpack');
var path = require('path');
module.exports = {
context: __dirname,
entry: './main.js',
output: {
path: path.join(__dirname, '../../build/webpack'),
publicPath: '../../build/webpack/',
filename: 'bundle.js'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compressor: {
screw_ie8: true,
warnings: false
}
})
]
};