Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // vite.config.js
- import react from '@vitejs/plugin-react';
- import { resolve } from 'path';
- import { defineConfig } from 'vite';
- export default defineConfig({
- plugins: [ react() ],
- resolve: {
- alias: {
- '@': resolve(__dirname, 'src'),
- '~': resolve(__dirname, 'node_modules')
- }
- },
- build: {
- assetsInlineLimit: 102400,
- rollupOptions: {
- output: {
- assetFileNames: 'src/assets/[name].[ext]'
- }
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement