-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.js
28 lines (27 loc) · 1.09 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { resolve } from 'node:path'
import eslint from "vite-plugin-eslint";
import dts from 'vite-plugin-dts'
import { defineConfig } from "vite";
export default defineConfig({
build: {
emptyOutDir: true,
outDir: "dist",
target: "esnext",
lib: {
entry: {
contentful: resolve(__dirname, "src/contentful/index.ts"),
strapi: resolve(__dirname, "src/strapi/index.ts"),
wordpress: resolve(__dirname, "src/wordpress/index.ts"),
caisy: resolve(__dirname, "src/caisy/index.ts"),
flotiq: resolve(__dirname, "src/flotiq/index.ts"),
'contentful-revalidator': resolve(__dirname, "src/contentful/revalidate.ts"),
'strapi-revalidator': resolve(__dirname, "src/strapi/revalidate.ts"),
'wordpress-revalidator': resolve(__dirname, "src/wordpress/revalidate.ts"),
'caisy-revalidator': resolve(__dirname, "src/caisy/revalidate.ts"),
'flotiq-revalidator': resolve(__dirname, "src/flotiq/revalidate.ts"),
},
formats: ["es", "cjs"],
}
},
plugins: [eslint(), dts({ tsConfigFilePath: "./tsconfig.json" })],
});