-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
36 lines (35 loc) · 973 Bytes
/
vite.config.js
File metadata and controls
36 lines (35 loc) · 973 Bytes
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
29
30
31
32
33
34
35
36
import { resolve } from "path";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import i18nExtractKeys from "./i18nExtractKeys.vite.js";
export default defineConfig({
plugins: [
i18nExtractKeys({
extraKeys: [
"plugins.generic.scieloScreening.info.documentOrcidsOkay",
"plugins.generic.scieloScreening.info.documentOrcidsUnableNoFile",
"plugins.generic.scieloScreening.info.documentOrcidsUnableNoOrcids",
"plugins.generic.scieloScreening.info.documentOrcidsUnableException",
],
}),
vue(),
],
build: {
target: "es2016",
lib: {
entry: resolve(__dirname, "resources/js/main.js"),
name: "ScieloScreeningPlugin",
fileName: "build",
formats: ["iife"],
},
outDir: resolve(__dirname, "public/build"),
rollupOptions: {
external: ["vue"],
output: {
globals: {
vue: "pkp.modules.vue",
},
},
},
},
});