Add CI check for wasm target and switch web build to npm

This commit is contained in:
2026-10-25 08:50:56 +07:00
parent a27ecd767e
commit d7ae86e955
7 changed files with 1110 additions and 415 deletions
+2 -6
View File
@@ -10,7 +10,7 @@ export default defineConfig({
viteStaticCopy({
targets: [
{
src: path.resolve(__dirname, "../../../assets/icons"),
src: path.resolve(__dirname, "../../assets/icons"),
dest: "assets",
},
],
@@ -21,7 +21,7 @@ export default defineConfig({
server.middlewares.use(
"/coop/assets",
(req, res, next) => {
const assetsPath = path.resolve(__dirname, "../../../assets");
const assetsPath = path.resolve(__dirname, "../../assets");
const filePath = path.join(
assetsPath,
req.url.replace("/assets", ""),
@@ -61,10 +61,6 @@ export default defineConfig({
strict: false,
allow: [".."],
},
headers: {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Opener-Policy": "same-origin",
},
},
optimizeDeps: {
exclude: ["./src/wasm"],