webstrom把scss编译成wxss

1、添加小程序对应的.wxml和.wxss后缀文件

  配置:preferences-->Editor  -->File Types

2、scss编译成wxss

a、安装:sudo gem install sass 

 b、设置scss文件编译为wxss

  配置:preferences-->Tools-->File Watchers

c、Arguments为:$FileName$:$FileNameWithoutExtension$.css

d、中文文件命名需在scss文件头部加入: @charset "UTF-8";

猜你喜欢

转载自www.cnblogs.com/hDanny/p/9460826.html