我在运行时遇到问题
gassetic build --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文件中的内容?
答案 0 :(得分:1)
Gassetic仅为 dev env启动观察者和livereload。因此,如果您只有一个env,那么请使用 dev 而不是 prod 。
在代码中然后使用<!-- *:frontend.css -->
(参见那里的*)