mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-23 13:07:47 +01:00
Fix: Using a Different UglifyJS in gulp-uglify
This commit is contained in:
parent
687509be93
commit
3292df52e4
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,7 @@ import * as ts from 'gulp-typescript';
|
||||||
import tslint from 'gulp-tslint';
|
import tslint from 'gulp-tslint';
|
||||||
import * as es from 'event-stream';
|
import * as es from 'event-stream';
|
||||||
import cssnano = require('gulp-cssnano');
|
import cssnano = require('gulp-cssnano');
|
||||||
import * as uglify from 'gulp-uglify';
|
import * as uglifyComposer from 'gulp-uglify/composer';
|
||||||
import pug = require('gulp-pug');
|
import pug = require('gulp-pug');
|
||||||
import * as rimraf from 'rimraf';
|
import * as rimraf from 'rimraf';
|
||||||
import * as chalk from 'chalk';
|
import * as chalk from 'chalk';
|
||||||
|
@ -18,8 +18,11 @@ import imagemin = require('gulp-imagemin');
|
||||||
import * as rename from 'gulp-rename';
|
import * as rename from 'gulp-rename';
|
||||||
import * as mocha from 'gulp-mocha';
|
import * as mocha from 'gulp-mocha';
|
||||||
import * as replace from 'gulp-replace';
|
import * as replace from 'gulp-replace';
|
||||||
|
import * as uglifyjs from 'uglify-js';
|
||||||
import version from './src/version';
|
import version from './src/version';
|
||||||
|
|
||||||
|
const uglify = uglifyComposer(uglifyjs, console);
|
||||||
|
|
||||||
const env = process.env.NODE_ENV;
|
const env = process.env.NODE_ENV;
|
||||||
const isProduction = env === 'production';
|
const isProduction = env === 'production';
|
||||||
const isDebug = !isProduction;
|
const isDebug = !isProduction;
|
||||||
|
|
Loading…
Reference in a new issue