Skip to content

Commit

Permalink
minify code
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Sep 17, 2024
1 parent ff9715b commit b10a652
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { createAppConfig } from '@nextcloud/vite-config'
import eslint from 'vite-plugin-eslint'
import stylelint from 'vite-plugin-stylelint'

console.error('process.env.NODE_ENV', process.env.NODE_ENV)
const isProduction = process.env.NODE_ENV === 'production'

export default createAppConfig({
main: 'src/main.js',
adminSettings: 'src/adminSettings.js',
Expand All @@ -21,4 +24,5 @@ export default createAppConfig({
plugins: [eslint(), stylelint()],
},
inlineCSS: { relativeCSSInjection: true },
minify: isProduction,
})

0 comments on commit b10a652

Please sign in to comment.