提交 bea5e560 编写于 作者: N Nicolas Hennion 提交者: GitHub

Merge pull request #923 from notFloran/webui-remove-uglify

[WebUI] Remove uglify of js files
glances/outputs/static/public/js/*.js -diff
{
"name": "Glances",
"name": "glances",
"private": true,
"dependencies": {
"angular": "^1.5.8",
......
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var mainBowerFiles = require('main-bower-files');
var ngAnnotate = require('gulp-ng-annotate');
......@@ -27,7 +26,6 @@ gulp.task('copy', function() {
gulp.task('bower', function() {
return gulp.src(mainBowerFiles())
.pipe(concat('vendor.js'))
.pipe(uglify())
.pipe(gulp.dest('./public/js'))
});
......@@ -35,7 +33,6 @@ gulp.task('build-js', function() {
return gulp.src('./js/**/*.js')
.pipe(ngAnnotate())
.pipe(concat('main.js'))
.pipe(uglify())
.pipe(gulp.dest('./public/js'))
});
......@@ -53,4 +50,4 @@ gulp.task('watch', function () {
});
gulp.task('build', ['clean', 'bower', 'build-js', 'template', 'copy']);
gulp.task('default', ['build']);
\ No newline at end of file
gulp.task('default', ['build']);
......@@ -8,7 +8,6 @@
"gulp-angular-templatecache": "^2.0.0",
"gulp-concat": "^2.6.0",
"gulp-ng-annotate": "^2.0.0",
"gulp-uglify": "^1.5.4",
"main-bower-files": "^2.13.1"
},
"scripts": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册