国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術(shù)文章
文章詳情頁

gulp的gulp-ruby-sass插件啟動不了報錯!

瀏覽:104日期:2024-08-08 18:27:32

問題描述

報錯:

λ gulp serve[18:22:40] Working directory changed to F:new-gulp-test[18:22:41] Using gulpfile F:new-gulp-testgulpfile.js[18:22:41] Starting ’scss’...[18:22:41] ’scss’ errored after 7.01 ms[18:22:41] ReferenceError: scss is not defined at Gulp.<anonymous> (F:new-gulp-testgulpfile.js:58:15) at module.exports (F:new-gulp-testnode_modules.npminstallorchestrator0.3.7orchestratorlibrunTask.js:34:7) at Gulp.Orchestrator._runTask (F:new-gulp-testnode_modules.npminstallorchestrator0.3.7orchestratorindex.js:273:3) at Gulp.Orchestrator._runStep (F:new-gulp-testnode_modules.npminstallorchestrator0.3.7orchestratorindex.js:214:10) at Gulp.Orchestrator.start (F:new-gulp-testnode_modules.npminstallorchestrator0.3.7orchestratorindex.js:134:8) at C:UsersAdministratorAppDataRoamingnpmnode_modules.gulp_npminstallgulp3.9.1gulpbingulp.js:129:20 at nextTickCallbackWith0Args (node.js:420:9) at process._tickCallback (node.js:349:13) at Function.Module.runMain (module.js:443:11) at startup (node.js:139:18)

node_modules目錄

gulp的gulp-ruby-sass插件啟動不了報錯!

gulpfile.js配置

var minifycss = require(’gulp-minify-css’),// CSS壓縮 uglify = require(’gulp-uglify’),// js壓縮 concat = require(’gulp-concat’),// 合并文件 rename = require(’gulp-rename’),// 重命名 clean = require(’gulp-clean’);//清空文件夾var gulp = require(’gulp’), sass = require(’gulp-ruby-sass’); notify = require(’gulp-notify’), plumber = require(’gulp-plumber’); browserSync = require(’browser-sync’).create(), reload = browserSync.reload;gulp.task(’serve’, [’scss’], function() { browserSync.init({server: './stc' }); gulp.watch('stc/**/*.scss', [’scss’]); gulp.watch('stc/*.html').on(’change’, reload);});gulp.task(’scss’, function() { return gulp.src([’stc/scss/*.scss’,’!stc/scss/extend/{reset,test}.scss’]).pipe(plumber({errorHandler: notify.onError(’Error: <%= error.message %>’)})).pipe(scss()).pipe(gulp.dest('stc/css')).pipe(reload({stream: true}));});gulp.task(’default’, [’serve’]);

問題解答

回答1:

你沒有一個叫scss的變量,看這里:

gulp.task(’scss’, function() { return gulp.src([’stc/scss/*.scss’,’!stc/scss/extend/{reset,test}.scss’]).pipe(plumber({errorHandler: notify.onError(’Error: <%= error.message %>’)})).pipe(sass()) //這里不對,應(yīng)該是sass吧 .pipe(gulp.dest('stc/css')).pipe(reload({stream: true}));});回答2:

ruby-sass 是依賴 ruby 的,你確定 ruby 環(huán)境無誤么?建議還是直接用 node-sass 性能也更好一些。

相關(guān)文章:
主站蜘蛛池模板: 真人一级毛片全部免 | 日日狠狠久久偷偷四色综合免费 | 欧美精品一二区 | 亚洲图片偷拍自拍 | 性感美女视频免费网站午夜 | 精品国产成人a在线观看 | 国内精品91最新在线观看 | 久久777国产线看是看精品 | 日本欧美一级aaaaa毛片 | 亚洲网站视频在线观看 | a一级免费视频 | 日美三级 | 99久久国产综合精品2020 | 久草视频免费在线观看 | 在线人成精品免费视频 | 国产日产高清欧美一区二区三区 | 久久不色 | 青青影院一区二区免费视频 | 日韩欧美不卡一区二区三区 | 亚洲一区二区三区一品精 | 三级毛片三级毛片 | 欧美精品一区视频 | 视频二区欧美 | 国产高清精品久久久久久久 | 欧美丰满大乳大屁股毛片 | 亚洲欧美日韩精品香蕉 | 毛片在线视频观看 | 欧美色xx| 国产亚洲人成a在线v网站 | 色偷偷亚洲女人天堂观看欧 | 国产精选一区二区 | 中文偷拍视频在线观看 | 国产专区一区 | 老司机深夜影院入口aaaa | 国产精品毛片在线更新 | 国产网曝手机视频在线观看 | 亚洲国产三级 | 九九视频免费在线观看 | 一区二区三区在线 | 免费萌白酱国产一区二区三区 | 高清午夜看片a福利在线观看琪琪 |