Build JS instead of html in vite
This commit is contained in:
parent
e54f55ad8e
commit
d7ad64b4e0
1 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
import legacy from '@vitejs/plugin-legacy'
|
||||
import { resolve } from 'path'
|
||||
|
||||
export default {
|
||||
root: './src',
|
||||
|
@ -6,7 +7,12 @@ export default {
|
|||
publicDir: '../assets',
|
||||
build: {
|
||||
outDir: '../dist',
|
||||
minify: false
|
||||
rollupOptions: {
|
||||
input: {
|
||||
index: resolve(__dirname, 'src/index.js'),
|
||||
stats: resolve(__dirname, 'src/stats/index.html'),
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
legacy({
|
||||
|
|
Loading…
Reference in a new issue