标签: sass-rails

带注释的 SASS 编译

我正在编译一个 SCSS 文件,它似乎删除了我的评论。我可以使用什么命令来保留所有评论?

>SASS input.scss output.css
Run Code Online (Sandbox Code Playgroud)

我在 SCSS 中看到两种类型的注释。

// Comment
Run Code Online (Sandbox Code Playgroud)

/* Comment */
Run Code Online (Sandbox Code Playgroud)

有什么不同?

sass sass-rails

4
推荐指数
2
解决办法
1724
查看次数

Heroku 上的 Rails 6:`SassC::SyntaxError:错误:未定义变量:“$body-bg”`

从 Rails 5 升级到 Rails 6.0.3.1 后,我的 SCSS 无法在 Heroku 上编译:

remote:        yarn install v1.16.0
remote:        [1/4] Resolving packages...
remote:        [2/4] Fetching packages...
remote:        info fsevents@1.1.3: The platform "linux" is incompatible with this module.
remote:        info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
remote:        [3/4] Linking dependencies...
remote:        warning "@rails/webpacker > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
remote:        warning " > webpack-dev-server@2.11.2" has unmet peer dependency "webpack@^2.2.0 || ^3.0.0".
remote:        warning "webpack-dev-server > webpack-dev-middleware@1.12.2" …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails sass heroku sass-rails

2
推荐指数
1
解决办法
1119
查看次数

标签 统计

sass ×2

sass-rails ×2

heroku ×1

ruby-on-rails ×1