swico 1.6.0-beta.3 → 1.6.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/config.js +2 -2
package/package.json
CHANGED
package/src/utils/config.js
CHANGED
|
@@ -316,7 +316,7 @@ var handleGlobalStyleFile = function (replaceIndexText) {
|
|
|
316
316
|
newReplaceIndexText = "require(\"../../src/global.".concat(styleFileType, "\");\n").concat(replaceIndexText);
|
|
317
317
|
}
|
|
318
318
|
else {
|
|
319
|
-
newReplaceIndexText = newReplaceIndexText.replaceAll(/require\("\.\.\/\.\.\/global.(less|scss|css)"\);/g, '');
|
|
319
|
+
newReplaceIndexText = newReplaceIndexText.replaceAll(/require\("\.\.\/\.\.\/src\/global.(less|scss|css)"\);/g, '');
|
|
320
320
|
}
|
|
321
321
|
return newReplaceIndexText;
|
|
322
322
|
};
|
|
@@ -371,7 +371,7 @@ var initTemplateConfig = function (routerConfig, templateType, env) {
|
|
|
371
371
|
return [4, fs_extra_1.default.writeFile(hooksFilePath, replaceHooksText)];
|
|
372
372
|
case 6:
|
|
373
373
|
_a.sent();
|
|
374
|
-
replaceIndexText = replaceIndexText.replace('require("../../global")
|
|
374
|
+
replaceIndexText = replaceIndexText.replace('require("../../global")', 'require("../../src/global");');
|
|
375
375
|
if (templateType === 'vue') {
|
|
376
376
|
replaceIndexText = replaceIndexText.replace('require("../../layout/Layout")', 'require("../../src/layout/Layout")');
|
|
377
377
|
}
|