text PHPStorm SASS设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text PHPStorm SASS设置相关的知识,希望对你有一定的参考价值。


https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000187290-File-Watchers-in-SCSS-output-directory

https://www.jetbrains.com/help/phpstorm/using-file-watchers.html



Command + ,

Seach File Watchers

Add [ SCSS ]

File type: SCSS Style Sheet

Score: Project Files

Program: scss

Arguments: --no-cache --update $FileName$:../css/$FileNameWithoutExtension$.css

Output paths to refresh: ..css/$FileNameWithoutExtension$.css:../css/$FileNameWithoutExtension$.css.map

Working Directory: $FileDir$

[ dont select auto save edited files to trigger ]


File Structure:


project/

	css/
		child-theme.css
		child-theme.map

	sass/
		theme/
			_child_theme.scss
			_child_theme_footer.scss
			_child_theme_variables.scss
		child-theme.scss





/sass/child-theme.scss:
@import "theme/child_theme_variables";

// additional @imports here

// Our child theme
@import "theme/child_theme"; // <--------- Add your styles into this file




/sass/theme/child_theme.scss:

// scss
$base : #666 ;

.test {
  color: $base;
  border-color: #000;
}

.child_theme_end {
  text-align: center ;

}

@import "child_theme_footer";



以上是关于text PHPStorm SASS设置的主要内容,如果未能解决你的问题,请参考以下文章

PhpStorm 无法识别使用 webpack 别名导入的 Sass 文件

PHPStorm:如何将多个 Sass 文件合并为一个?

text 用于Drush命令行调试的PHPstorm的设置

如何使用 PhpStorm 将选择包含在引号中?

PHPStorm怎么设置全局的偏好设置,现在偏好设置是针对当前项目的

编辑器笔记——sublime text3 编译sass