Browse Source

KERNEL-10608 refactor: 调整代码

es6
Zhenfei.Li 3 years ago
parent
commit
8df0cb290d
  1. 2
      lib/prepublish/prepublish.js

2
lib/prepublish/prepublish.js

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

Loading…
Cancel
Save