Skip to content

Commit

Permalink
fix css resources not being loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
pacexy committed Dec 23, 2022
1 parent 8a9133d commit 854a355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/build/webpack/plugins/flight-manifest-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { webpack, sources } from 'next/dist/compiled/webpack/webpack'
import { FLIGHT_MANIFEST } from '../../../shared/lib/constants'
import { relative } from 'path'
import { join, relative } from 'path'
import { isClientComponentModule, regexCSS } from '../loaders/utils'

import {
Expand Down Expand Up @@ -349,7 +349,7 @@ export class FlightManifestPlugin {
entryName: string | undefined | null
) => {
if (entryName?.startsWith('app/')) {
const key = this.appDir + entryName.slice(3)
const key = join(this.appDir, entryName.slice(3))
entryCSSFiles[key] = files.concat(entryCSSFiles[key] || [])
}
}
Expand Down

0 comments on commit 854a355

Please sign in to comment.