Serve the demo artwork in each build (#1494)

* Serve local demo artwork

* Disable restricted import lint

* Revert

* Switch approach to vite-multiple-assets plugin

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2023-12-11 01:06:00 -08:00
committed by GitHub
co-authored by Keavon Chambers
parent b60736c2c6
commit af4c793f43
7 changed files with 85 additions and 22 deletions
+2
View File
@@ -8,6 +8,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";
import rollupPluginLicense, { type Dependency } from "rollup-plugin-license";
import { sveltePreprocess } from "svelte-preprocess/dist/autoProcess";
import { defineConfig } from "vite";
import { default as viteMultipleAssets } from "vite-multiple-assets";
const projectRootDir = path.resolve(__dirname);
@@ -40,6 +41,7 @@ export default defineConfig({
defaultHandler?.(warning);
},
}),
viteMultipleAssets(["../demo-artwork"]),
],
resolve: {
alias: [