Skip to content

Commit

Permalink
define SCOPE_VERSION which is used by some nextcloud vue components
Browse files Browse the repository at this point in the history
  • Loading branch information
powerpaul17 committed Oct 4, 2022
1 parent ade3c91 commit 56e8148
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const vueDocsPlugin = {
}
};

// TODO give this value some meaning, needed for nextcloud vue components
const SCOPE_VERSION = '123';

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
return {
Expand All @@ -30,13 +33,15 @@ export default defineConfig(({ mode }) => {
sourcemap: mode === 'development' ? true : false
},
define: {
SCOPE_VERSION,
TRANSLATIONS: 'Array.from([])'
},
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use 'sass:math';
$scope_version:${SCOPE_VERSION};
@import './src/vendor/nextcloud-vue/src/assets/variables';
@import './src/vendor/nextcloud-vue/src/assets/material-icons';
`
Expand Down

0 comments on commit 56e8148

Please sign in to comment.