Browse Source

Pull request #2578: KERNEL-10608 refactor: 适配一下打包改成绝对路径的改动

Merge in VISUAL/fineui from ~ZHENFEI.LI/fineui:master to master

* commit '8df0cb290dab0a4010e9778dce65bc0fe2b447af':
  KERNEL-10608 refactor: 调整代码
  KERNEL-10608 refactor: 适配一下打包改成绝对路径的改动
es6
Zhenfei.Li 3 years ago
parent
commit
543700d2c4
  1. 3
      lib/prepublish/prepublish.js

3
lib/prepublish/prepublish.js

@ -45,7 +45,8 @@ function finalizeCompile() {
let lessContent = '';
bundleWithoutNormalize.forEach(path => {
lessContent += `@import "../.${path}";\n`;
const relativePath = path.replace(/.*src\/less/, 'src/less').replace(/.*public\/less/, 'public/less');
lessContent += `@import "../../${relativePath}";\n`;
});
writeFileSync(

Loading…
Cancel
Save