You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/css/samples/custom-scope-class/_config.js

13 lines
289 B

export default {
compileOptions: {
filename: 'src/components/FooSwitcher.svelte',
scopeClass({ hash, name, filename }) {
const minFilename = filename
.split('/')
.map(i => i.charAt(0).toLowerCase())
.join('');
return `sv-${name}-${minFilename}-${hash}`;
},
},
};