Skip to content

Commit

Permalink
Fix: Fix missing base url
Browse files Browse the repository at this point in the history
  • Loading branch information
whats2000 committed Jul 3, 2024
1 parent 751dc1f commit 918515a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions nsysu_selector_helper/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import {resolve} from 'path';
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { resolve } from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react({
plugins: [
['@swc/plugin-styled-components', { displayName: false }],
],
})],
plugins: [
react({
plugins: [['@swc/plugin-styled-components', { displayName: false }]],
}),
],
resolve: {
alias: [
{find: '@', replacement: resolve(__dirname, 'src')},
{find: '#', replacement: resolve(__dirname, 'src/components')},
{ find: '@', replacement: resolve(__dirname, 'src') },
{ find: '#', replacement: resolve(__dirname, 'src/components') },
],
},
})
base: '/selector_helper_react/',
});

0 comments on commit 918515a

Please sign in to comment.