【发布时间】:2018-05-14 15:30:17
【问题描述】:
尝试学习咕噜声。我已经安装了grunt-contrib-compass 和grunt-contrib-watch 插件。当我在终端中使用grunt 时,它会运行指南针任务并返回
Running "compass:dist" (compass) task
Compass can't find any Sass files to compile.
Is your compass configuration correct?.
If you're trying to start a new project, you have left off the directory argument.
Run "compass -h" to get help.`
Gruntfile 位于我安装的 Wordpress 的 wp-content/ 文件夹中。这是我的 Grunfile 中的指南针设置:
compass: {
dist: {
options: {
config: 'themes/THEME-NAME/config.rb',
force: true
}
}
},
我的 config.rb 在那里,并因此设置:
require 'singularitygs'
require "breakpoint"
http_path = "/"
css_dir = "/"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
output_style = :compressed
line_comments = false
有什么想法吗?我哪里出错了?
【问题讨论】:
-
将 config.rb 中的路径更改为相对于 Gemfile 所在的位置(例如:sass_dir = "themes/THEME-NAME/sass")给我关于我的奇异性和断点的一系列错误宝石。但它并不像没有要编译的文件一样。进展?
标签: javascript sass gruntjs compass grunt-contrib-compass