久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

    <i id='Q1MGw'><tr id='Q1MGw'><dt id='Q1MGw'><q id='Q1MGw'><span id='Q1MGw'><b id='Q1MGw'><form id='Q1MGw'><ins id='Q1MGw'></ins><ul id='Q1MGw'></ul><sub id='Q1MGw'></sub></form><legend id='Q1MGw'></legend><bdo id='Q1MGw'><pre id='Q1MGw'><center id='Q1MGw'></center></pre></bdo></b><th id='Q1MGw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Q1MGw'><tfoot id='Q1MGw'></tfoot><dl id='Q1MGw'><fieldset id='Q1MGw'></fieldset></dl></div>

    <legend id='Q1MGw'><style id='Q1MGw'><dir id='Q1MGw'><q id='Q1MGw'></q></dir></style></legend>
    • <bdo id='Q1MGw'></bdo><ul id='Q1MGw'></ul>
  1. <tfoot id='Q1MGw'></tfoot>

      Gulp-sass 無法編譯 scss 文件

      Gulp-sass fails to compile scss file(Gulp-sass 無法編譯 scss 文件)
        <legend id='VsXHL'><style id='VsXHL'><dir id='VsXHL'><q id='VsXHL'></q></dir></style></legend>
        <i id='VsXHL'><tr id='VsXHL'><dt id='VsXHL'><q id='VsXHL'><span id='VsXHL'><b id='VsXHL'><form id='VsXHL'><ins id='VsXHL'></ins><ul id='VsXHL'></ul><sub id='VsXHL'></sub></form><legend id='VsXHL'></legend><bdo id='VsXHL'><pre id='VsXHL'><center id='VsXHL'></center></pre></bdo></b><th id='VsXHL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VsXHL'><tfoot id='VsXHL'></tfoot><dl id='VsXHL'><fieldset id='VsXHL'></fieldset></dl></div>
        <tfoot id='VsXHL'></tfoot>
                <bdo id='VsXHL'></bdo><ul id='VsXHL'></ul>
                  <tbody id='VsXHL'></tbody>

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

              • 本文介紹了Gulp-sass 無法編譯 scss 文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在使用 Gulp 將我的 sass 編譯成 css.一個簡單的任務編譯 _/sass 目錄中的 style.scss 文件,并將輸出保存到項目的根目錄中.style.scss 僅用于導入 _/sass 目錄下的其他文件.

                I'm using Gulp to compile my sass into css. A simple task compiles the style.scss file in the _/sass directory and saves the output into the root of the project. style.scss is used merely to import other files in the _/sass directory.

                當我從命令行 ($ gulp) 運行默認任務時,我收到一個 sass 無法編譯的錯誤.它全部包含在下面.我已從包含的文件中刪除所有內容并再次運行該任務.我仍然收到相同的錯誤(我在網上閱讀的內容表明這可能會測試編碼問題.我不完全了解編碼以及這可能會如何破壞我的場景).

                When I run the default task from the command line ($ gulp) I get an error that the sass can't compile. It is included below in full. I have removed all content from the included files and run the task again. I still receive the same error (something I read online suggested this might test for an encoding issue. I don't fully understand encoding and how that might break things in my scenario).

                我還從命令行 $ sass _/sass/style.scss style.css 運行,它與包含文件中的內容完美配合.這表明 gulp sass 插件本身存在問題.

                I've also run from the command line $ sass _/sass/style.scss style.css which works perfectly with content in the included files. This suggests to me a problem with the gulp sass plugin itself.

                來自 gulpfile.js 的相關片段:

                The relevant snippets from gulpfile.js:

                var gulp = require('gulp');
                var sass = require('gulp-sass');
                
                // Compile sass files
                gulp.task('sass', function () {
                    gulp.src('./_/sass/style.scss')
                        .pipe(sass())
                        .pipe(gulp.dest('./'));
                });
                
                // The default task (called when you run `gulp`)
                gulp.task('default', function() {
                  gulp.run('sass');
                
                  // Watch files and run tasks if they change
                
                  gulp.watch(['./_/sass/style.scss'], function() {
                    gulp.run('sass');
                  })
                });
                

                style.scss的全部內容:

                The full contents of style.scss:

                /* RESET */
                @import '_/sass/reset';
                /* TYPOGRAPHY */
                @import '_/sass/typography';
                /* MOBILE */
                @import '_/sass/mobile';
                /* MAIN */
                @import '_/sass/main';
                

                目錄結構:

                ├── _
                │?? ├── inc
                │?? │?? ├── stuff
                │?? ├── js
                │?? │?? ├── otherstuff.js
                │?? └── sass
                │??     ├── main.scss
                │??     ├── mobile.scss
                │??     ├── print.scss
                │??     ├── reset.scss
                │??     ├── style.scss
                │??     └── typography.scss
                ├── gulpfile.js
                └── style.css
                

                終端吐出:

                [gulp] Using file /Users/jeshuamaxey/project/dir/path/gulpfile.js
                [gulp] Working directory changed to /Users/jeshuamaxey/project/dir/path/html5reset
                [gulp] Running 'default'...
                [gulp] Running 'sass'...
                [gulp] Finished 'sass' in 3.18 ms
                [gulp] Finished 'default' in 8.09 ms
                
                stream.js:94
                      throw er; // Unhandled stream error in pipe.
                            ^
                source string:11: error: file to import not found or unreadable: 'reset'
                

                推薦答案

                保持導入不變,只需在 gulp sass 模塊中傳遞 includePaths 選項作為參數:

                Keep your imports as is, just pass the includePaths option in your gulp sass module as an argument:

                gulp.src('./_/sass/style.scss')
                        .pipe(sass({ includePaths : ['_/sass/'] }))
                        .pipe(gulp.dest('./'));
                

                ...應該為你做.

                根據 https://github.com/dlmanning/gulp-sass/issues/1

                這篇關于Gulp-sass 無法編譯 scss 文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 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 崩潰)

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

                    <legend id='g1cq2'><style id='g1cq2'><dir id='g1cq2'><q id='g1cq2'></q></dir></style></legend>
                      <bdo id='g1cq2'></bdo><ul id='g1cq2'></ul>

                      • <tfoot id='g1cq2'></tfoot>
                          <tbody id='g1cq2'></tbody>
                      • <i id='g1cq2'><tr id='g1cq2'><dt id='g1cq2'><q id='g1cq2'><span id='g1cq2'><b id='g1cq2'><form id='g1cq2'><ins id='g1cq2'></ins><ul id='g1cq2'></ul><sub id='g1cq2'></sub></form><legend id='g1cq2'></legend><bdo id='g1cq2'><pre id='g1cq2'><center id='g1cq2'></center></pre></bdo></b><th id='g1cq2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='g1cq2'><tfoot id='g1cq2'></tfoot><dl id='g1cq2'><fieldset id='g1cq2'></fieldset></dl></div>

                          主站蜘蛛池模板: 成人av在线播放 | 成人乱人乱一区二区三区软件 | 狠狠干天天干 | 亚洲福利在线观看 | 一区二区三区在线免费观看视频 | 亚洲人a| 日韩图区 | 美日韩免费视频 | 欧美一级二级在线观看 | 久久久青草婷婷精品综合日韩 | 日韩中文字幕免费在线 | 宅男噜噜噜66一区二区 | 99国产精品久久久久 | 国产精品久久久久久久免费大片 | 国产精品一区二区视频 | 一区二区三区四区视频 | 一级做a爰片性色毛片视频停止 | 日韩视频精品在线 | 91精品国产日韩91久久久久久 | 国产九九九| 午夜一区二区三区在线观看 | 黄色大片免费看 | 亚洲精品九九 | 亚洲国产视频一区 | 成人在线免费网站 | 欧美精品一区在线 | 中文字幕97 | 久久精品久久久 | 在线91| 国产精品久久久久久久久久 | 亚洲精品中文在线 | 一区二区在线不卡 | 狠狠av| 日本污视频 | 免费观看日韩精品 | 人和拘一级毛片c | 国产美女在线观看 | 欧美一区二区三区久久精品 | 99精品在线 | 国产精品久久久久久久久久妞妞 | 在线观看视频91 |