From 62787e71619e1554493fc494412ca63f479b8dbb Mon Sep 17 00:00:00 2001 From: ayophanz Date: Tue, 9 Apr 2024 19:46:00 +0800 Subject: [PATCH] hot fixed for build error --- .env.docs | 2 +- .gitignore | 1 + docs/importmap.json | 6 --- docs/index.html | 89 --------------------------------------------- docs/root-config.js | 30 --------------- docs/single-spa.svg | 1 - 6 files changed, 2 insertions(+), 127 deletions(-) delete mode 100644 docs/importmap.json delete mode 100644 docs/index.html delete mode 100644 docs/root-config.js delete mode 100644 docs/single-spa.svg diff --git a/.env.docs b/.env.docs index f0b41d7..244f07c 100644 --- a/.env.docs +++ b/.env.docs @@ -1 +1 @@ -VITE_OUTDIR = docs +VITE_OUTDIR = dist diff --git a/.gitignore b/.gitignore index 38adffa..bca5a4b 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ dist dist-ssr coverage *.local +.env /cypress/videos/ /cypress/screenshots/ diff --git a/docs/importmap.json b/docs/importmap.json deleted file mode 100644 index 94b4683..0000000 --- a/docs/importmap.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "imports": { - "root-config": "./root-config.js", - "@single-spa/welcome": "https://unpkg.com/single-spa-welcome/dist/single-spa-welcome.js" - } -} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 0413e02..0000000 --- a/docs/index.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - Root Config - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/root-config.js b/docs/root-config.js deleted file mode 100644 index a8151de..0000000 --- a/docs/root-config.js +++ /dev/null @@ -1,30 +0,0 @@ -System.register(["single-spa","single-spa-layout"],function(m,s){"use strict";var i,a,c,p,l;return{setters:[t=>{i=t.registerApplication,a=t.start},t=>{c=t.constructRoutes,p=t.constructApplications,l=t.constructLayoutEngine}],execute:function(){var t=document.createElement("style");t.textContent=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: } -`,document.head.appendChild(t);const y="modulepreload",k=function(e,o){return new URL(e,o).href},b={},u=function(o,x,E){return Promise.resolve().then(()=>o()).catch(r=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=r,window.dispatchEvent(n),!n.defaultPrevented)throw r})},w=c(` - - - - -
- - - - - - -
-
-`),d=p({routes:w,loadApp:({name:e})=>u(()=>s.import(e),void 0,s.meta.url)}),g=l({routes:w,applications:d});d.forEach(i),g.activate(),a()}}}); diff --git a/docs/single-spa.svg b/docs/single-spa.svg deleted file mode 100644 index f121918..0000000 --- a/docs/single-spa.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file