Skip to content

Commit

Permalink
refactor: Only build one CSS file for the app to prevent loading issues
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>

[skip ci]
  • Loading branch information
susnux authored and backportbot[bot] committed Aug 8, 2024
1 parent 8dc7af0 commit af44ead
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Listener/BeforeTemplateRenderedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function handle(Event $event): void {
}
}

Util::addStyle(Application::APP_ID, Application::APP_ID . '-style');
Util::addScript(Application::APP_ID, Application::APP_ID . '-about');

$this->initialState->provideInitialState(
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "@vue/tsconfig",
"include": ["src/**/*.ts", "src/**/*.vue"],
"include": ["src/*.ts", "src/**/*.ts", "src/**/*.vue"],
"compilerOptions": {
"lib": ["DOM", "ESNext"]
}
Expand Down
7 changes: 7 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ import { join } from 'node:path'
export default createAppConfig({
activate: join(__dirname, 'src', 'first-run.js'),
about: join(__dirname, 'src', 'app-menu.js'),
}, {
config: {
build: {
// Just one CSS files for now
cssCodeSplit: false,
},
},
})

0 comments on commit af44ead

Please sign in to comment.