我正在使用罗盘,尝试将我的自定义scss文件导入application.scss并出现以下错误:
这是我的application.scss代码:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree
*/
@import "foundation_and_overrides";
@import "pnp";
如果我删除require_tree错误消息将消失,但我的scss文件(pnp.scss)将不会加载到页面
创建一个名为custom.css.scss
in的新文件app/assets/stylesheets
,然后使用那里的所有导入文件
@import "foundation_and_overrides";
@import "pnp";
希望能帮助到你。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句