From 1c086701b8710e7bc012c7be56ba07df445a6c13 Mon Sep 17 00:00:00 2001 From: sparker Date: Tue, 14 Apr 2020 21:49:10 -0500 Subject: [PATCH 1/3] Global styles now load before local in dev --- .../config/blocks/css/loaders/client.ts | 11 +++-- .../global-and-module/pages/_app.js | 12 ++++++ .../global-and-module/pages/index.js | 5 +++ .../global-and-module/pages/index.module.css | 3 ++ .../global-and-module/styles/global.css | 3 ++ test/integration/css/test/index.test.js | 42 +++++++++++++++++++ 6 files changed, 70 insertions(+), 6 deletions(-) create mode 100644 test/integration/css-fixtures/global-and-module/pages/_app.js create mode 100644 test/integration/css-fixtures/global-and-module/pages/index.js create mode 100644 test/integration/css-fixtures/global-and-module/pages/index.module.css create mode 100644 test/integration/css-fixtures/global-and-module/styles/global.css diff --git a/packages/next/build/webpack/config/blocks/css/loaders/client.ts b/packages/next/build/webpack/config/blocks/css/loaders/client.ts index ab3024c05c561..0db5ea05b5c70 100644 --- a/packages/next/build/webpack/config/blocks/css/loaders/client.ts +++ b/packages/next/build/webpack/config/blocks/css/loaders/client.ts @@ -17,18 +17,17 @@ export function getClientStyleLoader({ // and prod. To fix this, we render a