Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor: Only build one CSS file for the app to prevent loading issues
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Aug 8, 2024
commit 3d6d70ee982e4b13105a5e6b51201334bf65a628
1 change: 1 addition & 0 deletions lib/Listener/BeforeTemplateRenderedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,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 @@ -9,4 +9,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,
},
},
})