Browse Source
531: Cleanup frontend code r=klochowicz a=klochowicz Remove the `APP` variable from `maker-frontend` (from now on, it only builds maker). Update README, CI and start_all.sh script. note: the old taker component will be remove in the next PR, as I'm still mining it for ideas. Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>new-http-api
bors[bot]
3 years ago
committed by
GitHub
10 changed files with 51 additions and 70 deletions
@ -1,18 +0,0 @@ |
|||
import { Plugin } from "vite"; |
|||
|
|||
export default function dynamicApp(app: string): Plugin { |
|||
return { |
|||
name: "dynamicApp", // required, will show up in warnings and errors
|
|||
resolveId: (id) => { |
|||
// For some reason these are different?
|
|||
const productionBuildId = "src/__app__.tsx"; |
|||
const devBuildId = "/src/__app__.tsx"; |
|||
|
|||
if (id === productionBuildId || id === devBuildId) { |
|||
return `${__dirname}/src/${app}.tsx`; |
|||
} |
|||
|
|||
return null; |
|||
}, |
|||
}; |
|||
} |
Loading…
Reference in new issue