2015-12-22 04:46:50 +09:00
|
|
|
var webpack = require('webpack');
|
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
context: __dirname,
|
2016-04-13 22:24:25 +09:00
|
|
|
entry: {
|
|
|
|
'main': './main.js',
|
|
|
|
'pdf.worker': 'pdfjs-dist/build/pdf.worker.entry'
|
|
|
|
},
|
2015-12-22 04:46:50 +09:00
|
|
|
output: {
|
|
|
|
path: path.join(__dirname, '../../build/webpack'),
|
|
|
|
publicPath: '../../build/webpack/',
|
2016-04-13 22:24:25 +09:00
|
|
|
filename: '[name].bundle.js'
|
2015-12-22 04:46:50 +09:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
|
|
compressor: {
|
|
|
|
screw_ie8: true,
|
|
|
|
warnings: false
|
|
|
|
}
|
|
|
|
})
|
|
|
|
]
|
|
|
|
};
|