Remove sourcemap for Vue.js
This commit is contained in:
parent
a3819c33d2
commit
0f2dea8179
8
Makefile
8
Makefile
|
|
@ -2,9 +2,13 @@ BUILD_DIR = /tmp
|
|||
|
||||
all: static
|
||||
|
||||
static:
|
||||
clean:
|
||||
@ rm -rf ./node_modules ./bower_components
|
||||
|
||||
static: clean
|
||||
@ npm install
|
||||
@ ./node_modules/gulp-cli/bin/gulp.js
|
||||
@ ./node_modules/.bin/gulp bower
|
||||
@ ./node_modules/.bin/gulp vendor js css
|
||||
|
||||
archive:
|
||||
@ echo "Build archive: version=${version}, destination=${dst}"
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
11
gulpfile.js
11
gulpfile.js
|
|
@ -3,6 +3,7 @@ var concat = require('gulp-concat');
|
|||
var bower = require('gulp-bower');
|
||||
var uglify = require('gulp-uglify');
|
||||
var sass = require('gulp-sass');
|
||||
var strip = require('gulp-strip-comments');
|
||||
|
||||
var src = {
|
||||
js: [
|
||||
|
|
@ -50,8 +51,7 @@ var vendor = {
|
|||
'bower_components/simplemde/dist/simplemde.min.js',
|
||||
'bower_components/d3/d3.min.js',
|
||||
'bower_components/c3/c3.min.js',
|
||||
'bower_components/isMobile/isMobile.min.js',
|
||||
'node_modules/vue/dist/vue.min.js'
|
||||
'bower_components/isMobile/isMobile.min.js'
|
||||
]
|
||||
};
|
||||
|
||||
|
|
@ -67,6 +67,13 @@ gulp.task('bower', function() {
|
|||
});
|
||||
|
||||
gulp.task('vendor', function() {
|
||||
gulp.src('node_modules/vue/dist/vue.min.js')
|
||||
.pipe(strip({trim: true}))
|
||||
.pipe(gulp.dest('node_modules/vue/dist/'))
|
||||
;
|
||||
|
||||
vendor.js.push('node_modules/vue/dist/vue.min.js');
|
||||
|
||||
gulp.src(vendor.js)
|
||||
.pipe(concat('vendor.min.js'))
|
||||
.pipe(gulp.dest(dist.js))
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
"gulp-cli": "^1.2.1",
|
||||
"gulp-concat": "^2.6.0",
|
||||
"gulp-sass": "^2.3.2",
|
||||
"gulp-strip-comments": "^2.4.3",
|
||||
"gulp-uglify": "^1.5.3",
|
||||
"vue": "^1.0.26-csp"
|
||||
"vue": "1.0.26-csp"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue