久久久久久久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 無(wú)法編譯 scss 文件

      Gulp-sass fails to compile scss file(Gulp-sass 無(wú)法編譯 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 無(wú)法編譯 scss 文件的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                限時(shí)送ChatGPT賬號(hào)..

                我正在使用 Gulp 將我的 sass 編譯成 css.一個(gè)簡(jiǎn)單的任務(wù)編譯 _/sass 目錄中的 style.scss 文件,并將輸出保存到項(xiàng)目的根目錄中.style.scss 僅用于導(dǎo)入 _/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.

                當(dāng)我從命令行 ($ gulp) 運(yùn)行默認(rèn)任務(wù)時(shí),我收到一個(gè) sass 無(wú)法編譯的錯(cuò)誤.它全部包含在下面.我已從包含的文件中刪除所有內(nèi)容并再次運(yùn)行該任務(wù).我仍然收到相同的錯(cuò)誤(我在網(wǎng)上閱讀的內(nèi)容表明這可能會(huì)測(cè)試編碼問(wèn)題.我不完全了解編碼以及這可能會(huì)如何破壞我的場(chǎng)景).

                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 運(yùn)行,它與包含文件中的內(nèi)容完美配合.這表明 gulp sass 插件本身存在問(wèn)題.

                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.

                來(lái)自 gulpfile.js 的相關(guān)片段:

                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的全部?jī)?nèi)容:

                The full contents of style.scss:

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

                目錄結(jié)構(gòu):

                ├── _
                │?? ├── 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'
                

                推薦答案

                保持導(dǎo)入不變,只需在 gulp sass 模塊中傳遞 includePaths 選項(xiàng)作為參數(shù):

                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('./'));
                

                ...應(yīng)該為你做.

                根據(jù) https://github.com/dlmanning/gulp-sass/issues/1

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

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

                相關(guān)文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運(yùn)算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標(biāo)志傳遞給 Gulp 以使其以不同的方式運(yùn)行任務(wù)?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個(gè)接一個(gè)地依次運(yùn)行 Gulp 任務(wù))
                Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                CSS3 Transition ( Vendor Prefixes) crashes Safari immediately(CSS3 過(guò)渡(供應(yīng)商前綴)立即使 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>

                          主站蜘蛛池模板: 999精品在线观看 | 久久婷婷av | 成人午夜视频在线观看 | 亚洲精品久久区二区三区蜜桃臀 | 国产一区久久 | 91www在线观看 | 国产精品久久精品 | 成人超碰 | 亚洲免费一区二区 | 国产精品一区二区不卡 | 日本免费在线 | 粉嫩一区二区三区国产精品 | av网站免费在线观看 | 色综合久 | 午夜国产一级 | 欧美国产精品久久久 | 日韩中文字幕免费在线 | 欧美精品一区二区三区在线播放 | 欧美日韩在线一区二区 | 九九热精品在线 | 久久久久国产精品 | 在线免费观看黄色av | 国产一二区视频 | 国产精久久久久久久 | 国产精品无码专区在线观看 | 日韩在线视频免费观看 | 精品99久久| 欧美视频二区 | 国产欧美精品在线观看 | 美女天堂 | 亚洲视频一 | 欧美久操网 | 337p日本欧洲亚洲大胆鲁鲁 | 日韩精品一区二 | 日本粉嫩一区二区三区视频 | 超碰导航 | 91精品国产色综合久久不卡98 | 中文字幕高清 | 久久99深爱久久99精品 | 羞羞在线观看视频 | 日本在线网址 |