chore: add id to style element #219

This commit is contained in:
Hufe921
2023-07-26 20:41:32 +08:00
parent b12c6cc428
commit 166ff7f3f9
+6 -3
View File
@@ -8,11 +8,14 @@ export default defineConfig(({ mode }) => {
if (mode === 'lib') {
return {
plugins: [
cssInjectedByJsPlugin(),
cssInjectedByJsPlugin({
styleId: `${name}-style`,
topExecutionPriority: true
}),
{
...typescript({
tsconfig: './tsconfig.json',
include: ['./src/editor/**'],
include: ['./src/editor/**']
}),
apply: 'build',
declaration: true,
@@ -40,4 +43,4 @@ export default defineConfig(({ mode }) => {
host: '0.0.0.0'
}
}
})
})