Skip to content
Snippets Groups Projects
Verified Commit b0a7fd6d authored by Mar0xy's avatar Mar0xy
Browse files

Merge branch 'develop' of https://github.com/transfem-org/Sharkey into develop

parents 13c5da63 38412eef
No related branches found
No related tags found
No related merge requests found
......@@ -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);
},
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment