1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-27 16:50:11 +02:00

add prettier inside worker on shift-tab

This commit is contained in:
Kushagra Gour
2018-10-25 16:15:47 +05:30
parent 247fcaccc1
commit f49c9a1f68
7 changed files with 40 additions and 20 deletions

View File

@@ -17,7 +17,7 @@ function minifyJs(fileName) {
const content = fs.readFileSync(fileName, 'utf8');
const minifiedContent = babelMinify(
content,
{ mangle: content.length < 500000 },
{ mangle: content.length < 700000 },
{ sourceMaps: false }
).code;
fs.writeFileSync(fileName, minifiedContent);
@@ -39,6 +39,8 @@ gulp.task('copyFiles', function() {
.src('src/lib/codemirror/mode/**/*')
.pipe(gulp.dest('app/lib/codemirror/mode')),
gulp.src('src/lib/transpilers/*').pipe(gulp.dest('app/lib/transpilers')),
gulp.src('src/lib/prettier-worker.js').pipe(gulp.dest('app/lib/')),
gulp.src('src/lib/prettier/*').pipe(gulp.dest('app/lib/prettier')),
gulp.src('src/lib/screenlog.js').pipe(gulp.dest('app/lib')),
gulp.src('icons/*').pipe(gulp.dest('app/icons')),
gulp.src('src/assets/*').pipe(gulp.dest('app/assets')),