gastic-build--env=prod没有监视文件更改



运行时遇到问题

气体构建--env=产品

我的gastic.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之后,没有观察程序监视指定位置的scs文件以进行更改。

我是不是在gastic.yml文件中遗漏了什么?

Gassetic仅为dev环境启动观察程序和交付程序。因此,如果您只有一个env,请使用dev而不是prod

在代码中使用<!-- *:frontend.css -->(请参阅其中的*)

最新更新