最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機立即綁定

browser-sync 代理,具體要怎么實現(xiàn)呢

RT, browser-sync 代理,具體要怎么實現(xiàn)呢

正在回答

1 回答

var?gulp?=?require('gulp'),?//基礎(chǔ)庫
????less?=?require('gulp-less'),?//less
????minifycss?=?require('gulp-minify-css'),?//css壓縮
????runSequence?=?require('run-sequence'),?//按順序執(zhí)行
????browserSync?=?require('browser-sync').create()//頁面實時刷新;
//?樣式處理------------------------------------------------------------------------------------------------------------------------------------------
gulp.task('css',?function()?{
????gulp.src(file_road.cssSrc)
????????.pipe(less({?style:?'expanded'?}))
????????.pipe(minifycss())?//todo暫時隱藏壓縮
????????.pipe(gulp.dest(file_road.cssDst_end))?//最終目錄
????????.pipe(browserSync.stream());//檢測修改并自動刷新

});
//?監(jiān)聽任務(wù)?運行語句?gulp?watch------------------------------------------------------------------------------------------------------------------------------------------
gulp.task('watch',?function()?{
????browserSync.init({
????????server:?{
????????????baseDir:?"./",
????????},
????});
????//?監(jiān)聽css
????gulp.watch(file_road.w_cssSrc,?['css']);
????
});
gulp.task('dev',?function(done)?{
????runSequence(
????????['css'],?['watch'],
????????done);
});
gulp.task('default',?['dev']);

//運行g(shù)ulp?即可;如果出現(xiàn)的默認(rèn)?顯示cannot?get,再在后面添加相應(yīng)的文件名稱,例如?http://localhost:3000/html/index.html


1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

葉洛2

是需要node.js環(huán)境的,這些你在中文站上都有教程,還需要git執(zhí)行命令行
2017-04-04 回復(fù) 有任何疑惑可以回復(fù)我~
#2

heysweets3741442

正不知道怎么解決自動訪問index.html的問題呢,你這最后一句話,試了下 管用!感謝
2017-06-14 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

browser-sync 代理,具體要怎么實現(xiàn)呢

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號