mirror of https://github.com/sveltejs/svelte
parent
50aa595e7e
commit
2f55fc4fe7
@ -1,7 +1,12 @@
|
|||||||
export default {
|
export default {
|
||||||
compileOptions: {
|
compileOptions: {
|
||||||
scopeClass({ hash }) {
|
filename: 'src/components/FooSwitcher.svelte',
|
||||||
return `sv-${hash}`;
|
scopeClass({ hash, name, filename }) {
|
||||||
}
|
const minFilename = filename
|
||||||
|
.split('/')
|
||||||
|
.map(i => i.charAt(0).toLowerCase())
|
||||||
|
.join('');
|
||||||
|
return `sv-${name}-${minFilename}-${hash}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
div.sv-bzh57p{color:red}
|
div.sv-FooSwitcher-scf-bzh57p{color:red}
|
||||||
Loading…
Reference in new issue