mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix #lib
This commit is contained in:
@@ -17,6 +17,9 @@ const allowedHosts = process.env.VITE_ALLOWED_HOSTS
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [tailwindcss(), sveltekit({ adapter: adapter(), preprocess: vitePreprocess() })],
|
plugins: [tailwindcss(), sveltekit({ adapter: adapter(), preprocess: vitePreprocess() })],
|
||||||
|
resolve: {
|
||||||
|
alias: { '#lib': fileURLToPath(new URL('./src/lib', import.meta.url)) }
|
||||||
|
},
|
||||||
define: {
|
define: {
|
||||||
__APP_VERSION__: JSON.stringify(pkg.version),
|
__APP_VERSION__: JSON.stringify(pkg.version),
|
||||||
COMMIT_HASH: JSON.stringify(process.env.GIT_COMMIT_HASH || 'unknown')
|
COMMIT_HASH: JSON.stringify(process.env.GIT_COMMIT_HASH || 'unknown')
|
||||||
|
|||||||
Reference in New Issue
Block a user