Skip to content

Commit

Permalink
Revert "Lazy-load postcss (vercel#31762)"
Browse files Browse the repository at this point in the history
This reverts commit 92b397f.
  • Loading branch information
timneutkens committed Dec 4, 2021
1 parent cde46e7 commit 4fd39d9
Show file tree
Hide file tree
Showing 12 changed files with 339 additions and 344 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ test/node_modules
# logs & pids
*.log
pids
*.cpuprofile

# coverage
.nyc_output
Expand Down Expand Up @@ -42,4 +41,4 @@ test-timings.json
.now

# Cache
*.tsbuildinfo
*.tsbuildinfo
3 changes: 3 additions & 0 deletions packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { NextConfigComplete } from '../server/config-shared'
import { finalizeEntrypoint } from './entries'
import * as Log from './output/log'
import { build as buildConfiguration } from './webpack/config'
import { __overrideCssConfiguration } from './webpack/config/blocks/css/overrideCssConfiguration'
import MiddlewarePlugin from './webpack/plugins/middleware-plugin'
import BuildManifestPlugin from './webpack/plugins/build-manifest-plugin'
import { JsConfigPathsPlugin } from './webpack/plugins/jsconfig-paths-plugin'
Expand Down Expand Up @@ -1890,6 +1891,8 @@ export default async function getBaseWebpackConfig(
(e) => (e as any).__next_css_remove !== true
)
}
} else if (!config.future.strictPostcssConfiguration) {
await __overrideCssConfiguration(dir, supportedBrowsers, webpackConfig)
}

// Inject missing React Refresh loaders so that development mode is fast:
Expand Down
Loading

0 comments on commit 4fd39d9

Please sign in to comment.