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

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

gulp的gulp-ruby-sass插件啟動(dòng)不了報(bào)錯(cuò)!

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

問題描述

報(bào)錯(cuò):

λ 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插件啟動(dòng)不了報(bào)錯(cuò)!

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:

你沒有一個(gè)叫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()) //這里不對(duì),應(yīng)該是sass吧 .pipe(gulp.dest('stc/css')).pipe(reload({stream: true}));});回答2:

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

相關(guān)文章:
主站蜘蛛池模板: 国产精品久久久久久久久免费观看 | 久草小视频 | 黄色三级三级三级免费看 | 午夜精品网| 欧美日韩精品一区三区 | 美女视频免费看视频网站 | 国产香港特级一级毛片 | 国产精品免费一级在线观看 | 亚洲一区二区影视 | 久国产精品视频 | 国产真真人女人特级毛片 | 99久久久久国产精品免费 | 手机看成人免费大片 | 成人羞羞视频国产 | 怡红院亚洲红怡院天堂麻豆 | 精品高清国产a毛片 | 国产精品免费观看视频播放 | 国产成人精品男人的天堂538 | 免费观看黄色毛片 | 中国一级毛片aaa片 中国一级毛片录像 | 成年人免费网站视频 | 夜鲁夜鲁夜鲁在线观看福利 | 日本高清aⅴ毛片免费 | 国产精品国产三级国产在线观看 | 欧美一级毛片欧美一级 | 亚洲精品m在线观看 | 国产成人精品999在线观看 | 精品一区二区三区免费爱 | 宅男噜噜噜一区二区三区 | 欧美午夜精品一区二区三区 | 台湾精品视频在线观看 | 中文精品视频一区二区在线观看 | 欧美另类视频在线观看 | 欧美特黄aaaaaaaa大片 | 在线免费观看毛片网站 | 国产亚洲精品免费 | 亚洲国产欧美日韩 | 手机看片久久高清国产日韩 | 久久成人18免费 | 欧美一级二级片 | 国产成人女人在线视频观看 |