修改
This commit is contained in:
@@ -94,7 +94,7 @@ const componentGroups = computed(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss">
|
||||
.app-layout {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
|
||||
@@ -110,10 +110,11 @@ export default defineConfig({
|
||||
rollupOptions: {
|
||||
output: {
|
||||
format: 'es',
|
||||
// 确保 CSS 文件名可预测
|
||||
// 确保 CSS 文件名固定,不带 hash
|
||||
assetFileNames: (assetInfo) => {
|
||||
if (assetInfo.name === 'style.css') {
|
||||
return 'assets/style.css'
|
||||
// CSS 文件使用固定名称,便于在 index.html 中引用
|
||||
if (assetInfo.name?.endsWith('.css')) {
|
||||
return 'assets/shared-styles.css'
|
||||
}
|
||||
return 'assets/[name]-[hash][extname]'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user