mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-28 02:51:56 +08:00
合并样式文件:将多个样式文件合并为单一导入,简化样式管理,提升代码可维护性。
This commit is contained in:
11
src/main.ts
11
src/main.ts
@@ -40,15 +40,8 @@ import CronField from './components/field/CronField.vue'
|
||||
import PathField from './components/field/PathField.vue'
|
||||
import HeaderTab from './layouts/components/HeaderTab.vue'
|
||||
|
||||
// 7. 样式文件
|
||||
import '@core/scss/template/libs/vuetify/index.scss'
|
||||
import 'vuetify/styles'
|
||||
import '@core/scss/template/index.scss'
|
||||
import '@layouts/styles/index.scss'
|
||||
import 'vue-toast-notification/dist/theme-bootstrap.css'
|
||||
import 'vue3-perfect-scrollbar/style.css'
|
||||
import '@vue-js-cron/vuetify/dist/vuetify.css'
|
||||
import '@styles/styles.scss'
|
||||
// 7. 样式文件 - 合并为单一导入
|
||||
import '@/styles/main.scss'
|
||||
|
||||
// 创建Vue实例
|
||||
const app = createApp(App)
|
||||
|
||||
13
src/styles/main.scss
Normal file
13
src/styles/main.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
/* 主样式文件 - 合并所有CSS/SCSS引用 */
|
||||
|
||||
/* Vuetify和模板核心样式 */
|
||||
@use '@core/scss/template/libs/vuetify/index' as vuetify-lib;
|
||||
@use '@core/scss/template/index' as template;
|
||||
@use '@layouts/styles/index' as layouts;
|
||||
@use 'vuetify/styles' as vuetify;
|
||||
@use '@styles/custom' as custom;
|
||||
|
||||
/* 第三方库纯CSS样式 */
|
||||
@import 'vue-toast-notification/dist/theme-bootstrap.css';
|
||||
@import 'vue3-perfect-scrollbar/style.css';
|
||||
@import '@vue-js-cron/vuetify/dist/vuetify.css';
|
||||
Reference in New Issue
Block a user