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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "1.6.0-beta.3",
3
+ "version": "1.6.0-beta.4",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -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");', 'require("../../src/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
  }