mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-01 08:19:53 +09:00
@ -1,8 +1,6 @@
|
||||
import * as webpack from 'webpack';
|
||||
const StringReplacePlugin = require('string-replace-webpack-plugin');
|
||||
|
||||
import constant from './const';
|
||||
import compression from './compression';
|
||||
|
||||
const env = process.env.NODE_ENV;
|
||||
const isProduction = env === 'production';
|
||||
@ -14,10 +12,8 @@ export default () => {
|
||||
];
|
||||
|
||||
if (isProduction) {
|
||||
plugins.push(new webpack.optimize.UglifyJsPlugin());
|
||||
//plugins.push(new webpack.optimize.UglifyJsPlugin());
|
||||
}
|
||||
|
||||
plugins.push(compression());
|
||||
|
||||
return plugins;
|
||||
};
|
||||
|
Reference in New Issue
Block a user