mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
28 lines
559 B
JavaScript
28 lines
559 B
JavaScript
import path from 'node:path'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: 'dist/sass-modern-compiler-build',
|
|
rollupOptions: {
|
|
input: {
|
|
entry1: path.join(
|
|
import.meta.dirname,
|
|
'sass-modern-compiler-build/entry1.scss',
|
|
),
|
|
entry2: path.join(
|
|
import.meta.dirname,
|
|
'sass-modern-compiler-build/entry2.scss',
|
|
),
|
|
},
|
|
},
|
|
},
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
api: 'modern-compiler',
|
|
},
|
|
},
|
|
},
|
|
})
|