jokes-bapak2/client/vite.config.js

25 lines
414 B
JavaScript
Raw Normal View History

2021-05-02 07:49:13 +00:00
import { defineConfig } from 'vite';
import { resolve } from 'path';
import eslint from '@rollup/plugin-eslint';
export default defineConfig({
publicDir: 'public',
root: './src',
server: {
port: 8000,
cors: false,
},
plugins: [
eslint({
fix: true,
}),
],
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'src/index.html'),
},
},
},
});