WebStorm configure output path for Sass

回眸只為那壹抹淺笑 提交于 2019-12-23 03:29:26

问题


I've a quick question about setting up a watcher in WebStorm for SCSS transpiling.

I want the watcher to transpile scss files to a specific folder:

Project/assests/scss/(several scss files) transpile to Project/src/css/(transpiled css files)

I noticed that there are terms like $FileNameWithoutExtension$ or $FileParentDir$, what language is that? :)

Thanks a lot!


回答1:


Please try the following:

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

Working directory: $FileDir$

Output paths to Refresh: $ProjectFileDir$/src/css/$FileNameWithoutExtension$.css:$ProjectFileDir$/src/css/$FileNameWithoutExtension$.css.map 


来源:https://stackoverflow.com/questions/36025976/webstorm-configure-output-path-for-sass

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!