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

        <tfoot id='NGv7o'></tfoot>
        • <bdo id='NGv7o'></bdo><ul id='NGv7o'></ul>

        Gulp 手表不工作

        时间:2023-05-28
        • <small id='ZgzLY'></small><noframes id='ZgzLY'>

            <tbody id='ZgzLY'></tbody>
            <bdo id='ZgzLY'></bdo><ul id='ZgzLY'></ul>

              1. <i id='ZgzLY'><tr id='ZgzLY'><dt id='ZgzLY'><q id='ZgzLY'><span id='ZgzLY'><b id='ZgzLY'><form id='ZgzLY'><ins id='ZgzLY'></ins><ul id='ZgzLY'></ul><sub id='ZgzLY'></sub></form><legend id='ZgzLY'></legend><bdo id='ZgzLY'><pre id='ZgzLY'><center id='ZgzLY'></center></pre></bdo></b><th id='ZgzLY'></th></span></q></dt></tr></i><div id='ZgzLY'><tfoot id='ZgzLY'></tfoot><dl id='ZgzLY'><fieldset id='ZgzLY'></fieldset></dl></div>
                1. <tfoot id='ZgzLY'></tfoot><legend id='ZgzLY'><style id='ZgzLY'><dir id='ZgzLY'><q id='ZgzLY'></q></dir></style></legend>
                  本文介绍了Gulp 手表不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我是 Gulp 的新用户,我尝试使用简单的脚本来查看指南针,但它不起作用.但是当我运行 gulp compass 时,gulp 可以编译它.有任何想法吗?这是我的脚本:

                  I'm new Gulp user, and I try simple script to watch compass, but it didn't work. But when I just run gulp compass gulp can compile it. Any ideas? Here my script:

                  var gulp = require('gulp'),
                      compass = require('gulp-compass'),
                  
                  // Compass
                  gulp.task('compass', function() {
                      gulp.src('./assets/scss/*.scss')
                          .pipe(compass({
                              config_file: './config.rb',
                              css: './assets/css',
                              sass: './assets/scss'
                          }))
                          .pipe(gulp.dest('./assets/css'));
                  });
                  
                  // Default task
                  gulp.task('default', function() {
                      gulp.start('compass');
                  });
                  
                  // Watch
                  gulp.task('watch', function() {
                  
                      // Watch .scss files
                      gulp.watch('./assets/scss/*.scss', ['compass']);
                  
                  });
                  

                  推荐答案

                  你忽略了实际调用watch"任务,这和 gulp.watch 不是一回事.您的默认 gulp 任务应如下所示:

                  You've neglected to actually call the "watch" task, which is not the same thing as gulp.watch. Your default gulp task should instead look like:

                  gulp.task('default', function() {
                      gulp.start('compass');
                      gulp.start('watch');
                  });
                  

                  但它应该看起来像:

                  gulp.task('default', ['compass', 'watch']);
                  

                  这篇关于Gulp 手表不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:当我输入 npm start 时如何启动 Gulp watch 任务 下一篇:任何等效的 gulp 插件用于执行“grunt bower"?

                  相关文章

                  最新文章

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

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