近思录 2019-12-14 💜
Intelligence X
https://intelx.io/
ADB连不上红米Note 4
因为没开USB调试。
14万PV达成
As of 2019-12-12.
GULP
1 2 3 4 npm install gulp -g npm install gulp-htmlclean gulp-htmlmin gulp-clean-css gulp-uglify --save npm install gulp-cli -g gulp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 var gulp = require ('gulp' );var minifycss = require ('gulp-clean-css' );var uglify = require ('gulp-uglify' );var htmlmin = require ('gulp-htmlmin' );var htmlclean = require ('gulp-htmlclean' );gulp.task ('minify-html' , function ( ) { return gulp.src ('./public/**/*.html' ) .pipe (htmlclean ()) .pipe (htmlmin ({ removeComments : true , minifyJS : true , minifyCSS : true , minifyURLs : true , })) .pipe (gulp.dest ('./public' )) }); gulp.task ('minify-css' , function ( ) { return gulp.src (['./public/**/*.css' , '!./public/**/*.min.css' , '!./public/**/*-min.css' ]) .pipe (minifycss ({ compatibility : 'ie8' })) .pipe (gulp.dest ('./public' )); }); gulp.task ('minify-js' , function ( ) { return gulp.src (['./public/**/*.js' , '!./public/**/*.min.js' ]) .pipe (uglify ()) .pipe (gulp.dest ('./public' )); }); gulp.task ('default' , gulp.parallel ( 'minify-html' ,'minify-css' ,'minify-js' ));
或者您可以把评论发在别处,添加指向本页的连接,然后把网址告诉我:
本文标题: 近思录 2019-12-14
文章作者: Chris
发布时间: 2019-12-14
最后更新: 2022-03-23
原始链接: https://chriszheng.science/2019/12/14/Recent-thoughts-2019-12-14/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY 4.0 许可协议。转载请注明出处!
分享