gpt4 book ai didi

visual-studio-2010 - Mindscape Web Workbench Sass 未知 mixin

转载 作者:行者123 更新时间:2023-12-01 04:05:27 24 4
gpt4 key购买 nike

我目前正在使用 Mindscape Web Workbench 从 sass 创建 css。我正在使用导入所有其他文件的整体 site.scss 文件。

  /*** Infrastructure ***************************************/
/**********************************************************/
@import "../../Infrastructure/_Common";
@import "../../Layouts/Layout1/_Layout";

/*** Theming **********************************************/
/**********************************************************/
@import "_Theme";

我在 _Common 中定义的 Mixin 在 _Theme 中是未知的。当 site.css 被编译时,它一切正常,但 Mindscape Web Workbench 的智能感知认为 mixin 是未定义的。有没有办法让插件知道这些 mixin 被定义了?

最佳答案

"@import"的 SASS 语法与 .Net 的语法冲突。在.Net 中使用SASS 时,将“@import”替换为关键字“@reference”,并注释掉@reference (s)。见 http://getcassette.net/documentation/AssetReferences想要查询更多的信息。

你上面的代码是:

/*** Infrastructure ***************************************/
/**********************************************************/
/*
@reference "../../Infrastructure/_Common";
@reference "../../Layouts/Layout1/_Layout";
*/

/*** Theming **********************************************/
/**********************************************************/
/*
@reference "_Theme";
*/

关于visual-studio-2010 - Mindscape Web Workbench Sass 未知 mixin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9775585/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com