Symfony gassetic build--env=prod不监视文件更改

Symfony gassetic build--env=prod不监视文件更改,symfony,gulp,gulp-watch,Symfony,Gulp,Gulp Watch,我跑步时有点问题 gassetic构建--env=prod 我的gassetic.yml文件有以下内容 requires: compass : gulp-compass minify : gulp-minify-css concat : gulp-concat uglify : gulp-uglify mimetypes: # This section contains the formatters for the css files css

我跑步时有点问题

gassetic构建--env=prod

我的gassetic.yml文件有以下内容

requires:
    compass : gulp-compass
    minify  : gulp-minify-css
    concat  : gulp-concat
    uglify  : gulp-uglify
mimetypes:
    # This section contains the formatters for the css files
    css:
        # In 'prod' mode, use these settings
        prod:
            outputFolder: web/css  # The output folder for your saving your compiled files
            webPath:      css  # The web path for the compiled files
        # Run these tasks on your compiled files
        tasks:
            - { name: compass, args: { sass: src/WebBundle/Resources/sass, css: web/css } }
            - { name: minify }
            - { name: concat, args: '%filename%' }
    # This is the list of source files to apply the above settings
        files:
            frontend.css: # This is the output filename
                - src/WebBundle/Resources/sass/*.scss

    # Watch these files for changes (optional)
    watch:
        - src/WebBundle/Resources/sass/*.scss
但是,在编译css之后,没有观察者在指定位置观察scss文件的更改


gassetic.yml文件中是否有遗漏?

gassetic仅为开发人员环境启动watcher和livereload。因此,如果只有一个env,则使用dev而不是prod


在代码中,然后使用
(请参见其中的*)

堆栈溢出广告:D