Skip to content

Commit fdf3bae

Browse files
committed
chore: Check in vite.config.js
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 15c4812 commit fdf3bae

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

vite.config.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)