mirror of
https://github.com/chenasraf/cospend-nc.git
synced 2026-05-17 17:38:10 +00:00
36 lines
812 B
TypeScript
36 lines
812 B
TypeScript
/**
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
import { createAppConfig } from '@nextcloud/vite-config'
|
|
import eslint from 'vite-plugin-eslint'
|
|
import stylelint from 'vite-plugin-stylelint'
|
|
|
|
const isProduction = process.env.NODE_ENV === 'production'
|
|
|
|
export default createAppConfig({
|
|
main: 'src/main.js',
|
|
adminSettings: 'src/adminSettings.js',
|
|
sharePassword: 'src/sharePassword.js',
|
|
dashboard: 'src/dashboard.js'
|
|
}, {
|
|
config: {
|
|
css: {
|
|
modules: {
|
|
localsConvention: 'camelCase',
|
|
},
|
|
preprocessorOptions: {
|
|
scss: {
|
|
api: 'modern-compiler',
|
|
},
|
|
},
|
|
},
|
|
plugins: [eslint(), stylelint()],
|
|
build: {
|
|
cssCodeSplit: true,
|
|
},
|
|
},
|
|
inlineCSS: { relativeCSSInjection: true },
|
|
minify: isProduction,
|
|
})
|