chore: scss 路径映射调整

This commit is contained in:
2betop 2022-06-08 12:55:49 +08:00
parent d59b1b1fb7
commit 22907c16a4

View File

@ -257,9 +257,9 @@ if (fis.project.currentMedia() === 'dev') {
let pkg = '';
if (/^amis\/lib\/themes\/(.*)\.css$/.test(uri)) {
newName = `amis-ui/scss/themes/${RegExp.$1}.scss`;
newName = `/packages/amis-ui/scss/themes/${RegExp.$1}.scss`;
} else if (/^amis\/lib\/(.*)\.css$/.test(uri)) {
newName = `amis-ui/scss/${RegExp.$1}.scss`;
newName = `/packages/amis-ui/scss/${RegExp.$1}.scss`;
} else if (
uri === 'amis-formula/lib/doc' ||
uri === 'amis-formula/lib/doc.md'