mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
23 lines
611 B
JavaScript
23 lines
611 B
JavaScript
const base = require('./base.js');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = Object.assign(base.config, {
|
|
entry: [
|
|
'./index.js'
|
|
],
|
|
plugins: base.config.plugins.concat([
|
|
new webpack.optimize.DedupePlugin(),
|
|
new webpack.optimize.OccurrenceOrderPlugin(true),
|
|
new webpack.optimize.UglifyJsPlugin()
|
|
]),
|
|
devtool: 'eval'
|
|
});
|
|
|
|
/*
|
|
* Maybe add in the future:
|
|
* - https://github.com/lettertwo/appcache-webpack-plugin
|
|
* - https://github.com/NekR/offline-plugin
|
|
* - https://github.com/goldhand/sw-precache-webpack-plugin
|
|
* - https://github.com/Klathmon/imagemin-webpack-plugin
|
|
*/
|