<tfoot id='8XswC'></tfoot>
  • <small id='8XswC'></small><noframes id='8XswC'>

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

      1. <legend id='8XswC'><style id='8XswC'><dir id='8XswC'><q id='8XswC'></q></dir></style></legend>

        使用 GULP 编译 SASS 和 SUSY

        时间:2023-05-28
            <legend id='WlbBK'><style id='WlbBK'><dir id='WlbBK'><q id='WlbBK'></q></dir></style></legend>
            <i id='WlbBK'><tr id='WlbBK'><dt id='WlbBK'><q id='WlbBK'><span id='WlbBK'><b id='WlbBK'><form id='WlbBK'><ins id='WlbBK'></ins><ul id='WlbBK'></ul><sub id='WlbBK'></sub></form><legend id='WlbBK'></legend><bdo id='WlbBK'><pre id='WlbBK'><center id='WlbBK'></center></pre></bdo></b><th id='WlbBK'></th></span></q></dt></tr></i><div id='WlbBK'><tfoot id='WlbBK'></tfoot><dl id='WlbBK'><fieldset id='WlbBK'></fieldset></dl></div>
            <tfoot id='WlbBK'></tfoot>

              <bdo id='WlbBK'></bdo><ul id='WlbBK'></ul>

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

                    <tbody id='WlbBK'></tbody>

                1. 本文介绍了使用 GULP 编译 SASS 和 SUSY的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在尝试让 gulp 编译我的 sass 并使用 susy 网格/框架.

                  I am trying to get gulp to compile my sass and use the susy grid/framework.

                  我无法在网上找到有关此的任何信息.

                  I'm having troubles finding any information about this online.

                  我已包括:

                  "gulp-ruby-sass": "^0.7.1",
                  

                  进入我的 package.json 并安装一切.

                  into my package.json and installed everything.

                  我的 gulp sass gulp 任务喜欢这样:

                  My gulp sass gulp task likes like so:

                  gulp.task('sass', ['images'], function () {
                    return gulp.src('src/sass/*.{sass, scss}')
                      .pipe(sass({
                        bundleExec: true,
                        sourcemap: true,
                        sourcemapPath: '../sass'
                      }))
                      .on('error', handleErrors)
                      .pipe(gulp.dest('build'));
                  });
                  

                  所以我一生都无法弄清楚如何包含 susy 以使其符合使用 gulp 的要求,我没有看过也似乎看不到在线查找与此相关的任何内容.

                  So I can't for the life of me work out how to include susy so it complies using gulp, I haven't looked and can't seem to find anything relating to this online.

                  推荐答案

                  你可以使用gulp-compass,你只需要在你的系统中安装compass并安装gulp-compass 通过 npm 打包,示例代码如下:

                  You can use gulp-compass, you only need to have compass installed in your system and install gulp-compass package through npm, here is a sample code:

                  var compass = require('gulp-compass');
                  
                  gulp.task('compass', function() {
                    return gulp.src('./src/*.scss')
                    .pipe(compass({
                      // Gulp-compass options and paths
                      css: 'app/assets/css',
                      sass: 'app/assets/sass',
                      require: ['susy']
                    }))
                    .on('error', handleErrors)
                    .pipe(gulp.dest('app/assets/temp'));
                  });
                  

                  关于这个包的更多信息这里

                  这篇关于使用 GULP 编译 SASS 和 SUSY的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:任务名称的 Gulp.js 约定 下一篇:如何防止 gulp-notify 在 Windows 中破坏 gulp-watch?

                  相关文章

                  最新文章

                    <bdo id='fxcFv'></bdo><ul id='fxcFv'></ul>

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

                      <i id='fxcFv'><tr id='fxcFv'><dt id='fxcFv'><q id='fxcFv'><span id='fxcFv'><b id='fxcFv'><form id='fxcFv'><ins id='fxcFv'></ins><ul id='fxcFv'></ul><sub id='fxcFv'></sub></form><legend id='fxcFv'></legend><bdo id='fxcFv'><pre id='fxcFv'><center id='fxcFv'></center></pre></bdo></b><th id='fxcFv'></th></span></q></dt></tr></i><div id='fxcFv'><tfoot id='fxcFv'></tfoot><dl id='fxcFv'><fieldset id='fxcFv'></fieldset></dl></div>
                    1. <tfoot id='fxcFv'></tfoot>

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