Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/transfem-org/Sharkey int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
Mar0xy committed Oct 22, 2023
2 parents 13c5da6 + 38412ee commit b0a7fd6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,8 @@ export function getConfig(): UserConfig {
modules: {
generateScopedName(name, filename, _css): string {
const id = (path.relative(__dirname, filename.split('?')[0]) + '-' + name).replace(/[\\\/\.\?&=]/g, '-').replace(/(src-|vue-)/g, '');
if (process.env.NODE_ENV === 'production') {
return 'x' + toBase62(hash(id)).substring(0, 4);
} else {
return id;
}
const shortId = id.replace(/^(components(-global)?|widgets|ui(-_common_)?)-/, '');
return shortId + '-' + toBase62(hash(id)).substring(0, 4);
},
},
},
Expand Down

0 comments on commit b0a7fd6

Please sign in to comment.