[英]Find declaration for not linked CSS files in PhpStorm
In my project I've linked just one minified css file which I've excluded from search and marked it as plain text . 在我的项目中,我仅链接了一个缩小的css文件,该文件已从搜索中排除,并将其标记为纯文本 。 That css file is generated automatically and contains all other css files in folder marked as Resources root .
该css文件是自动生成的,并且包含 标记为Resources root的 文件 夹 中的所有其他css文件 。
But PhpStorm seems to be using for finding declaration just files that are linked in html . 但是PhpStorm似乎仅用于查找 以html链接的文件的 声明 。 Is there any "hack" how can I force it to see all files from selected folder ?
是否有任何“ hack”如何强制它查看所选文件夹中的所有文件 ?
Yes, unfortunately PhpStorm only uses classes from explicitly linked css files when collecting the list of styles defined for your page. 是的,不幸的是,PhpStorm在收集为页面定义的样式列表时仅使用显式链接的css文件中的类。
As a workaround I can only suggest adding temporary links to source .css files, and remove these links in production version... or mark your generated minified css as CSS :( 作为一种解决方法,我只能建议向源.css文件添加临时链接,并在生产版本中删除这些链接...或将生成的缩小的CSS标记为CSS :(
Please feel free to file a feature request for css mapping support similar to the one used for JavaScript (creating a map of all symbols and, if element can't be resolved from explicit reference, just resolve it by name) to our Issue Tracker . 请随意向CSS映射支持提交功能请求,该请求类似于JavaScript所使用的功能(创建所有符号的映射,如果无法从显式引用中解析元素,则只需按名称解析即可)到我们的问题跟踪器 。 Related ticket: WEB-11431 .
相关票务: WEB-11431 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.