v0.3.8-pre.002-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-store-desk/vite.config.ts
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
import { NodePackageImporter } from "sass-embedded";
|
||||
import { fileURLToPath } from "node:url";
|
||||
@@ -41,7 +41,7 @@ export default defineConfig({
|
||||
if (["png", "jpg", "jpeg", "gif", "svg", "webp", "ico"].includes(extension)) {
|
||||
return "imgs/[name][extname]";
|
||||
}
|
||||
return "otherassets/[name][hash][extname]";
|
||||
return "otherassets/[name][extname]";
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -49,6 +49,9 @@ export default defineConfig({
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
quietDeps: true,
|
||||
silenceDeprecations: ["import", "color-functions", "global-builtin"],
|
||||
verbose: false,
|
||||
importers: [new NodePackageImporter()],
|
||||
},
|
||||
},
|
||||
@@ -57,17 +60,11 @@ export default defineConfig({
|
||||
port: 1438,
|
||||
strictPort: true,
|
||||
host: devHost || false,
|
||||
hmr: devHost
|
||||
? {
|
||||
protocol: "ws",
|
||||
host: devHost,
|
||||
port: 1439,
|
||||
}
|
||||
: {
|
||||
protocol: "ws",
|
||||
host: "localhost",
|
||||
port: 1439,
|
||||
},
|
||||
ws: {
|
||||
protocol: "ws",
|
||||
host: devHost || "localhost",
|
||||
port: 1439,
|
||||
},
|
||||
watch: {
|
||||
ignored: ["**/src/**"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user