mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 21:13:09 +02:00
Use uglifyjs-webpack-plugin instead of uglify-es-webpack-plugin
Because uglify-es-webpack-plugin is now deprecated
This commit is contained in:
parent
b5f724381e
commit
866d5428bc
3 changed files with 9 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "0.0.2584",
|
"version": "0.0.2732",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "A miniblog-based SNS",
|
"description": "A miniblog-based SNS",
|
||||||
"bugs": "https://github.com/syuilo/misskey/issues",
|
"bugs": "https://github.com/syuilo/misskey/issues",
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
"@types/webpack": "3.0.13",
|
"@types/webpack": "3.0.13",
|
||||||
"@types/webpack-stream": "3.2.7",
|
"@types/webpack-stream": "3.2.7",
|
||||||
"@types/websocket": "0.0.34",
|
"@types/websocket": "0.0.34",
|
||||||
"awesome-typescript-loader": "^3.2.3",
|
"awesome-typescript-loader": "3.2.3",
|
||||||
"chai": "4.1.2",
|
"chai": "4.1.2",
|
||||||
"chai-http": "3.0.0",
|
"chai-http": "3.0.0",
|
||||||
"css-loader": "0.28.7",
|
"css-loader": "0.28.7",
|
||||||
|
@ -90,8 +90,8 @@
|
||||||
"swagger-jsdoc": "1.9.7",
|
"swagger-jsdoc": "1.9.7",
|
||||||
"tslint": "5.7.0",
|
"tslint": "5.7.0",
|
||||||
"uglify-es": "3.0.27",
|
"uglify-es": "3.0.27",
|
||||||
"uglify-es-webpack-plugin": "0.10.0",
|
|
||||||
"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony",
|
"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony",
|
||||||
|
"uglifyjs-webpack-plugin": "1.0.0-beta.2",
|
||||||
"webpack": "3.8.1"
|
"webpack": "3.8.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
"debug": "3.1.0",
|
"debug": "3.1.0",
|
||||||
"deep-equal": "1.0.1",
|
"deep-equal": "1.0.1",
|
||||||
"deepcopy": "0.6.3",
|
"deepcopy": "0.6.3",
|
||||||
"diskusage": "^0.2.2",
|
"diskusage": "0.2.2",
|
||||||
"download": "6.2.5",
|
"download": "6.2.5",
|
||||||
"elasticsearch": "13.3.1",
|
"elasticsearch": "13.3.1",
|
||||||
"escape-regexp": "0.0.1",
|
"escape-regexp": "0.0.1",
|
||||||
|
|
|
@ -2,13 +2,11 @@ const StringReplacePlugin = require('string-replace-webpack-plugin');
|
||||||
|
|
||||||
import constant from './const';
|
import constant from './const';
|
||||||
import hoist from './hoist';
|
import hoist from './hoist';
|
||||||
//import minify from './minify';
|
import minify from './minify';
|
||||||
import banner from './banner';
|
import banner from './banner';
|
||||||
|
|
||||||
/*
|
|
||||||
const env = process.env.NODE_ENV;
|
const env = process.env.NODE_ENV;
|
||||||
const isProduction = env === 'production';
|
const isProduction = env === 'production';
|
||||||
*/
|
|
||||||
|
|
||||||
export default version => {
|
export default version => {
|
||||||
const plugins = [
|
const plugins = [
|
||||||
|
@ -16,11 +14,11 @@ export default version => {
|
||||||
new StringReplacePlugin(),
|
new StringReplacePlugin(),
|
||||||
hoist()
|
hoist()
|
||||||
];
|
];
|
||||||
/*
|
|
||||||
if (isProduction) {
|
if (isProduction) {
|
||||||
plugins.push(minify());
|
plugins.push(minify());
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
plugins.push(banner(version));
|
plugins.push(banner(version));
|
||||||
|
|
||||||
return plugins;
|
return plugins;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
const UglifyEsPlugin = require('uglify-es-webpack-plugin');
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||||
|
|
||||||
export default () => new UglifyEsPlugin();
|
export default () => new UglifyJsPlugin();
|
||||||
|
|
Loading…
Reference in a new issue