mirror of
https://github.com/yldio/copilot.git
synced 2024-12-26 03:40:04 +02:00
8295bd6882
this shall be a progressive process
34 lines
950 B
JavaScript
34 lines
950 B
JavaScript
const webpack = require('webpack');
|
|
|
|
const pkg = require('../package.json');
|
|
|
|
module.exports = {
|
|
'occurrence-order': new webpack.optimize.OccurrenceOrderPlugin(true),
|
|
'aggressive-merging': new webpack.optimize.AggressiveMergingPlugin(),
|
|
'hot-module-replacement': new webpack.HotModuleReplacementPlugin(),
|
|
'named-modules': new webpack.NamedModulesPlugin(),
|
|
'no-errors': new webpack.NoErrorsPlugin(),
|
|
'loader-options': new webpack.LoaderOptionsPlugin({
|
|
options: {
|
|
'embed-markdown-loader': {
|
|
mode: 'plain'
|
|
}
|
|
}
|
|
}),
|
|
'define': new webpack.DefinePlugin({
|
|
'process.env': {
|
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development'),
|
|
APP_NAME: JSON.stringify(pkg.name),
|
|
APP_VERSION: JSON.stringify(pkg.version)
|
|
}
|
|
}),
|
|
'uglify-js': new webpack.optimize.UglifyJsPlugin({
|
|
sourceMap: true,
|
|
mangle: true,
|
|
output: {
|
|
comments: false,
|
|
indent_level: 2
|
|
}
|
|
})
|
|
};
|