mirror of
https://github.com/morten-olsen/shipped.git
synced 2026-02-07 23:26:23 +01:00
init
This commit is contained in:
18
packages/website/vite.config.ts
Normal file
18
packages/website/vite.config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import mdx from "@mdx-js/rollup"
|
||||
import path from 'path';
|
||||
|
||||
const ASSET_URL = process.env.ASSET_URL || '';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: `${ASSET_URL}/`,
|
||||
plugins: [react(), mdx()],
|
||||
resolve:{
|
||||
alias:{
|
||||
'@' : path.resolve(__dirname, './src'),
|
||||
'node-fetch': 'isomorphic-fetch',
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user