There was an error while loading. Please reload this page.
1 parent 15c4812 commit fdf3baeCopy full SHA for fdf3bae
1 file changed
vite.config.js
@@ -0,0 +1,32 @@
1
+/*
2
+ * Copyright (c) 2026 The Recognize contributors.
3
+ * This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
4
+ */
5
+import { createAppConfig } from '@nextcloud/vite-config'
6
+import eslint from 'vite-plugin-eslint'
7
+import stylelint from 'vite-plugin-stylelint'
8
+
9
+const isProduction = process.env.NODE_ENV === 'production'
10
11
+export default createAppConfig({
12
+ admin: 'src/admin.js',
13
+}, {
14
+ config: {
15
+ css: {
16
+ modules: {
17
+ localsConvention: 'camelCase',
18
+ },
19
+ preprocessorOptions: {
20
+ scss: {
21
+ api: 'modern-compiler',
22
23
24
25
+ plugins: [eslint(), stylelint()],
26
+ build: {
27
+ cssCodeSplit: true,
28
29
30
+ inlineCSS: { relativeCSSInjection: true },
31
+ minify: isProduction,
32
+})
0 commit comments