Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit b5a95d2

Browse files
author
Je
committed
fix: fix postcss plugin loading
1 parent 267c42f commit b5a95d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

project.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export class Project {
7878
plugins: [],
7979
postcss: {
8080
plugins: [
81+
'postcss-flexbugs-fixes',
8182
'autoprefixer'
8283
]
8384
}
@@ -517,7 +518,7 @@ export class Project {
517518
// update routing options
518519
this.#routing = new Routing([], this.config.baseUrl, this.config.defaultLocale, this.config.locales)
519520
// import post plugins
520-
this.config.postcss.plugins.map(async p => {
521+
await Promise.all(this.config.postcss.plugins.map(async p => {
521522
let name: string
522523
if (typeof p === 'string') {
523524
name = p
@@ -526,7 +527,7 @@ export class Project {
526527
}
527528
const { default: Plugin } = await import(`https://esm.sh/${name}[email protected]&no-check`)
528529
this.#postcssPlugins[name] = Plugin
529-
})
530+
}))
530531
}
531532

532533
private async _init(reload: boolean) {

0 commit comments

Comments
 (0)