我安装了HbuilderX,装了less插件,右击less文件,看到菜单有外部命令,less编译,结果就默默地就编译出来了,编译出来的CSS文件跟less文件同名,还同目录,我想让编译出来的CSS在不同的目录,请问要怎么办?
wzsgjlzhy
- 发布:2019-03-04 16:17
- 更新:2022-04-07 19:33
- 阅读:4725
如下图所示,找到【scss插件配置】
{
"name": "sass",
"id": "compile-node-sass",
"version": "0.0.1-2019022020",
"external": {
"type": "node",
"programPath": "${pluginPath}",
"executable": "/node_modules/.bin/node-sass",
"programName": "node-sass-china",
"commands": [
{
"id": "SASS_COMPILE",
"name": "编译scss/sass",
"command": [
"${programPath}",
"${file}",
"${fileBasename}.css" //此处代表编译后的文件路径,暂时不支持变量,可以写死。后期会优化的
],
"extensions": "scss,sass",
"key": "",
"showInParentMenu": false,
"onDidSaveExecution": false
}
]
},
"dependencies": {
"node-sass-china": "^4.7.2"
},
"extensionDependencies": [
"npm"
],
"description": "compile-node-sass插件用于scss/sass文件编译"
}
江江江蒋
请问修改了怎么不行呀
2021-08-03 20:10