From 743bf5d3454ef9fccde30f63973c58e3d62c9888 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Tue, 18 Feb 2020 14:35:12 +0100 Subject: [PATCH] Enable scss/sass support (#10571) Co-authored-by: Joe Haddad --- packages/next/next-server/server/config.ts | 2 +- test/integration/scss-fixtures/next.config.js | 1 - test/integration/typescript/next.config.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/next/next-server/server/config.ts b/packages/next/next-server/server/config.ts index 657f51022a9b7cc..962ead43c2402d4 100644 --- a/packages/next/next-server/server/config.ts +++ b/packages/next/next-server/server/config.ts @@ -42,7 +42,7 @@ const defaultConfig: { [key: string]: any } = { (os.cpus() || { length: 1 }).length) - 1 ), css: true, - scss: false, + scss: true, documentMiddleware: false, granularChunks: true, modern: false, diff --git a/test/integration/scss-fixtures/next.config.js b/test/integration/scss-fixtures/next.config.js index b97156a83b09e49..2a0ee47afec3cab 100644 --- a/test/integration/scss-fixtures/next.config.js +++ b/test/integration/scss-fixtures/next.config.js @@ -3,7 +3,6 @@ module.exports = { // Make sure entries are not getting disposed. maxInactiveAge: 1000 * 60 * 60, }, - experimental: { scss: true }, webpack(cfg) { cfg.devtool = 'source-map' return cfg diff --git a/test/integration/typescript/next.config.js b/test/integration/typescript/next.config.js index 5adba078e31d095..cc17cf48c578fd5 100644 --- a/test/integration/typescript/next.config.js +++ b/test/integration/typescript/next.config.js @@ -3,5 +3,4 @@ module.exports = { // Make sure entries are not getting disposed. maxInactiveAge: 1000 * 60 * 60, }, - experimental: { scss: true }, }