19 lines
No EOL
552 B
TypeScript
19 lines
No EOL
552 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import path from "path";
|
|
import { glob } from "glob";
|
|
|
|
export default defineConfig({
|
|
plugins: [],
|
|
root: "src",
|
|
build: {
|
|
manifest: true,
|
|
outDir: path.join(__dirname, "dist"),
|
|
rollupOptions: {
|
|
input: glob.sync([path.resolve(__dirname, "src", "**/*.html"),path.resolve(__dirname, "src", "**/*.js"), path.resolve(__dirname, "src", "**/*.css")]),
|
|
},
|
|
emptyOutDir: true,
|
|
},
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
|
}
|
|
}); |