bump: 4.0 - new react frontend
This commit is contained in:
33
vite.config.js
Normal file
33
vite.config.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { resolve } from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: [
|
||||
resolve(__dirname, 'index.html'),
|
||||
resolve(__dirname, 'src/content.js')
|
||||
],
|
||||
output: {
|
||||
entryFileNames: (chunkInfo) => {
|
||||
if (chunkInfo.name === 'content') {
|
||||
return 'scripts/content.js';
|
||||
}
|
||||
return 'assets/[name]-[hash].js';
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@/': '/src/',
|
||||
},
|
||||
},
|
||||
publicDir: 'public',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user