开发环境
- Windows 10
软件工具
- sed
下载地址:https://github.com/mbuilov/sed-windows
配置Webstorm
1、需要利用文件监听: preference->Tools->File Watchers
2、点击下方 + 号,新增一个文件监听
3、
name: 自定义即可
File type: 选择 Cascading Style Sheet
Program: 写上sed.exe全路径
Arguments:-i s/"\ rpx"/rpx/g FilePathFilePathFilePath
Output paths to refresh: FilePathFilePathFilePath
参考文档:https://course.7yue.pro/lin/sleeve/5%20webstorm开发小程序常用设置.html#常用设置