pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<legend id='5FY4s'><style id='5FY4s'><dir id='5FY4s'><q id='5FY4s'></q></dir></style></legend>
<i id='5FY4s'><tr id='5FY4s'><dt id='5FY4s'><q id='5FY4s'><span id='5FY4s'><b id='5FY4s'><form id='5FY4s'><ins id='5FY4s'></ins><ul id='5FY4s'></ul><sub id='5FY4s'></sub></form><legend id='5FY4s'></legend><bdo id='5FY4s'><pre id='5FY4s'><center id='5FY4s'></center></pre></bdo></b><th id='5FY4s'></th></span></q></dt></tr></i><div class="kiscc2w" id='5FY4s'><tfoot id='5FY4s'></tfoot><dl id='5FY4s'><fieldset id='5FY4s'></fieldset></dl></div>
    • <bdo id='5FY4s'></bdo><ul id='5FY4s'></ul>

  • <small id='5FY4s'></small><noframes id='5FY4s'>

    <tfoot id='5FY4s'></tfoot>

      1. 縮進的 Sass 語法不適用于 node-sass 和 gulp-sass

        Indented Sass syntax not working with node-sass and gulp-sass(縮進的 Sass 語法不適用于 node-sass 和 gulp-sass)
          <tbody id='3TPPa'></tbody>
        <tfoot id='3TPPa'></tfoot>

            <i id='3TPPa'><tr id='3TPPa'><dt id='3TPPa'><q id='3TPPa'><span id='3TPPa'><b id='3TPPa'><form id='3TPPa'><ins id='3TPPa'></ins><ul id='3TPPa'></ul><sub id='3TPPa'></sub></form><legend id='3TPPa'></legend><bdo id='3TPPa'><pre id='3TPPa'><center id='3TPPa'></center></pre></bdo></b><th id='3TPPa'></th></span></q></dt></tr></i><div class="gqgioqe" id='3TPPa'><tfoot id='3TPPa'></tfoot><dl id='3TPPa'><fieldset id='3TPPa'></fieldset></dl></div>
              1. <small id='3TPPa'></small><noframes id='3TPPa'>

                  <bdo id='3TPPa'></bdo><ul id='3TPPa'></ul>
                • <legend id='3TPPa'><style id='3TPPa'><dir id='3TPPa'><q id='3TPPa'></q></dir></style></legend>

                  本文介紹了縮進的 Sass 語法不適用于 node-sass 和 gulp-sass的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  Libsass 2.0 為 libsass 用戶帶來了縮進語法,但到目前為止,我還無法使其與 node-sassgulp-sass 一起使用.我有所有最新版本:

                  node-sass:0.93
                  gulp-sass:0.7.2
                  吞咽:3.8.2

                  此設置使用括號語法編譯 .scss 文件甚至 .sass 文件,但不會編譯縮進語法.有人用 node-sass 和 gulp 成功編譯了縮進語法嗎?

                  我的 gulpfile.js

                  var gulp = require('gulp');var sass = require('gulp-sass');gulp.task('sass', function() {返回 gulp.src('./sites/all/themes/nsfvb/sass/screen.sass').pipe(薩斯({includePaths: require('node-neat').includePaths,errLogToConsole: 真})).pipe(gulp.dest('./sites/all/themes/nsfvb/css'));});gulp.task('watch', function() {gulp.watch('./sites/all/themes/nsfvb/sass/*.sass', ['sass']);});gulp.task('default', ['sass', 'watch']);


                  運行默認任務時出錯

                  錯誤:無效的頂級表達式

                  解決方案

                  更新答案:

                  <塊引用>

                  如果您想使用縮進語法 (.sass) 作為頂級文件,請使用 sass({indentedSyntax: true}).

                  sass({indentedSyntax: true})

                  過時的答案

                  在這里找到答案:https://github.com/dlmanning/gulp-sass/issues/55#issuecomment-50882250

                  <塊引用>

                  使用默認設置編譯 sass 文件不起作用.但是,有一種解決方法.如果您通過 sourceComments: 'normal' 作為參數編譯工作.原因是有一個奇怪的條件改變了文件的處理方式:https://github.com/dlmanning/gulp-sass/blob/master/index.js#L23-L27

                  此處的代碼示例:https://github.com/chrisdl/gulp-libsass-example/blob/master/gulpfile.js

                  var gulp = require('gulp');var sass = require('gulp-sass');//在終端中使用> gulp sass"運行.gulp.task('sass', function () {gulp.src('./sass/main.sass').pipe(sass({sourceComments: 'normal'})).pipe(gulp.dest('./css'));});

                  通知

                  如果您在使用此代碼段時遇到問題,請查看以下引用和問題.

                  <塊引用>

                  使用此解決方法將導致 gulp 管道中早期文件內容的任何更改(例如早期插件)被丟棄 - JMM

                  https://github.com/dlmanning/gulp-sass/issues/158

                  Libsass 2.0 brought the indented syntax to libsass users, but so far I've been unable to make it work with node-sass and gulp-sass. I have all of the latest versions:

                  node-sass: 0.93
                  gulp-sass: 0.7.2
                  gulp: 3.8.2

                  This setup compiles .scss files and even .sass files using the bracket syntax but it will not compile the indented syntax. Has anyone successfully compiled the indented syntax with node-sass and gulp?

                  My gulpfile.js

                  var gulp = require('gulp');
                  var sass = require('gulp-sass');
                  
                  gulp.task('sass', function() {
                      return gulp.src('./sites/all/themes/nsfvb/sass/screen.sass')
                          .pipe(sass({
                              includePaths: require('node-neat').includePaths,
                              errLogToConsole: true
                          }
                          ))
                          .pipe(gulp.dest('./sites/all/themes/nsfvb/css'));
                  });
                  
                  gulp.task('watch', function() {
                      gulp.watch('./sites/all/themes/nsfvb/sass/*.sass', ['sass']);
                  });
                  
                  gulp.task('default', ['sass', 'watch']);
                  


                  Error when running the default task

                  error: invalid top-level expression

                  解決方案

                  Updated answer:

                  If you want to use the indented syntax (.sass) as the top level file, use sass({indentedSyntax: true}).

                  sass({indentedSyntax: true})
                  

                  Outdated answer

                  Answer found here: https://github.com/dlmanning/gulp-sass/issues/55#issuecomment-50882250

                  With default settings compiling sass files doesn't work. However there is a workaround. If you pass sourceComments: 'normal' as parameter the compilation work. The reason for this is that there is a strange condition which change how file are handled: https://github.com/dlmanning/gulp-sass/blob/master/index.js#L23-L27

                  Code example found here: https://github.com/chrisdl/gulp-libsass-example/blob/master/gulpfile.js

                  var gulp = require('gulp');
                  var sass = require('gulp-sass');
                  
                  // Run with "> gulp sass" in terminal.
                  gulp.task('sass', function () {
                  gulp.src('./sass/main.sass')
                      .pipe(sass({sourceComments: 'normal'}))
                      .pipe(gulp.dest('./css'));
                  });
                  

                  Notice

                  If you run into issues using this snippet take a look at the following quote and issue.

                  Using this workaround will result in any changes to the file content from earlier in the gulp pipeline (e.g. earlier plugins) being discarded - JMM

                  https://github.com/dlmanning/gulp-sass/issues/158

                  這篇關于縮進的 Sass 語法不適用于 node-sass 和 gulp-sass的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                  CSS3 Transition ( Vendor Prefixes) crashes Safari immediately(CSS3 過渡(供應商前綴)立即使 Safari 崩潰)
                  @font-face crashes IE8(@font-face 讓 IE8 崩潰)
                  jquery limit text by length(jquery按長度限制文本)

                    <legend id='cos8l'><style id='cos8l'><dir id='cos8l'><q id='cos8l'></q></dir></style></legend>

                      <tbody id='cos8l'></tbody>

                    <small id='cos8l'></small><noframes id='cos8l'>

                        • <tfoot id='cos8l'></tfoot>

                            <bdo id='cos8l'></bdo><ul id='cos8l'></ul>
                            <i id='cos8l'><tr id='cos8l'><dt id='cos8l'><q id='cos8l'><span id='cos8l'><b id='cos8l'><form id='cos8l'><ins id='cos8l'></ins><ul id='cos8l'></ul><sub id='cos8l'></sub></form><legend id='cos8l'></legend><bdo id='cos8l'><pre id='cos8l'><center id='cos8l'></center></pre></bdo></b><th id='cos8l'></th></span></q></dt></tr></i><div class="aciosgc" id='cos8l'><tfoot id='cos8l'></tfoot><dl id='cos8l'><fieldset id='cos8l'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 深圳法律咨询【24小时在线】深圳律师咨询免费 | 氟塑料磁力泵-不锈钢离心泵-耐腐蚀化工泵厂家「皖金泵阀」 | 骨龄仪_骨龄检测仪_儿童骨龄测试仪_品牌生产厂家【品源医疗】 | 避光流动池-带盖荧光比色皿-生化流动比色皿-宜兴市晶科光学仪器 东莞爱加真空科技有限公司-进口真空镀膜机|真空镀膜设备|Polycold维修厂家 | 阳光1号桔柚_无核沃柑_柑橘新品种枝条苗木批发 - 苧金网 | 气体热式流量计-定量控制流量计(空气流量计厂家)-湖北南控仪表科技有限公司 | 微水泥_硅藻泥_艺术涂料_艺术漆_艺术漆加盟-青岛泥之韵环保壁材 武汉EPS线条_EPS装饰线条_EPS构件_湖北博欧EPS线条厂家 | 四探针电阻率测试仪-振实密度仪-粉末流动性测定仪-宁波瑞柯微智能 | 超声波焊接机,振动摩擦焊接机,激光塑料焊接机,超声波焊接模具工装-德召尼克(常州)焊接科技有限公司 | 铝合金风口-玻璃钢轴流风机-玻璃钢屋顶风机-德州东润空调设备有限公司 | 济南菜鸟驿站广告|青岛快递车车体|社区媒体-抖音|墙体广告-山东揽胜广告传媒有限公司 | SDG吸附剂,SDG酸气吸附剂,干式酸性气体吸收剂生产厂家,超过20年生产使用经验。 - 富莱尔环保设备公司(原名天津市武清县环保设备厂) | 税筹星_灵活用工平台_企业财务顾问_财税法薪综合服务平台 | 阜阳成人高考_阜阳成考报名时间_安徽省成人高考网 | 小型单室真空包装机,食品单室真空包装机-百科 | HYDAC过滤器,HYDAC滤芯,现货ATOS油泵,ATOS比例阀-东莞市广联自动化科技有限公司 | 武汉天安盾电子设备有限公司 - 安盾安检,武汉安检门,武汉安检机,武汉金属探测器,武汉测温安检门,武汉X光行李安检机,武汉防爆罐,武汉车底安全检查,武汉液体探测仪,武汉安检防爆设备 | 聚合甘油__盐城市飞龙油脂有限公司 | 科普仪器菏泽市教育教学仪器总厂 | 润滑脂-高温润滑脂-轴承润滑脂-食品级润滑油-索科润滑油脂厂家 | 无锡门窗-系统门窗-阳光房-封阳台-断桥铝门窗厂[窗致美] | PCB厂|线路板厂|深圳线路板厂|软硬结合板厂|电路板生产厂家|线路板|深圳电路板厂家|铝基板厂家|深联电路-专业生产PCB研发制造 | 书信之家_书信标准模板范文大全| 杭州货架订做_组合货架公司_货位式货架_贯通式_重型仓储_工厂货架_货架销售厂家_杭州永诚货架有限公司 | 泉州陶瓷pc砖_园林景观砖厂家_石英砖地铺石价格 _福建暴风石英砖 | 临沂招聘网_人才市场_招聘信息_求职招聘找工作请认准【马头商标】 | 老房子翻新装修,旧房墙面翻新,房屋防水补漏,厨房卫生间改造,室内装潢装修公司 - 一修房屋快修官网 | 搪玻璃冷凝器_厂家-越宏化工设备 | 模温机-油温机-电加热导热油炉-工业冷水机「欧诺智能」 | 齿式联轴器-弹性联轴器-联轴器厂家-江苏诺兴传动联轴器制造有限公司 | 荣事达手推洗地机_洗地机厂家_驾驶式扫地机_工业清洁设备 | 办公室家具公司_办公家具品牌厂家_森拉堡办公家具【官网】 | 稳尚教育加盟-打造高考志愿填报平台_新高考志愿填报加盟_学业生涯规划加盟 | 玉米深加工设备-玉米深加工机械-新型玉米工机械生产厂家-河南粮院机械制造有限公司 | 卸料器-卸灰阀-卸料阀-瑞安市天蓝环保设备有限公司 | 环保袋,无纺布袋,无纺布打孔袋,保温袋,环保袋定制,环保袋厂家,环雅包装-十七年环保袋定制厂家 | 天津热油泵_管道泵_天津高温热油泵-天津市金丰泰机械泵业有限公司【官方网站】 | 飞歌臭氧发生器厂家_水处理臭氧发生器_十大臭氧消毒机品牌 | 胶泥瓷砖胶,轻质粉刷石膏,嵌缝石膏厂家,腻子粉批发,永康家德兴,永康市家德兴建材厂 | pH污水传感器电极,溶解氧电极传感器-上海科蓝仪表科技有限公司 | 楼承板-开闭口楼承板-无锡海逵楼承板 |