Unverified Commit 8d765b02 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Enable Experimental CSS Source Maps (#8805)

Source maps should be enabled in development so that original styles can be inspected.
This is in-line with other Next.js behavior (source maps in dev).
parent deeaa923
...@@ -592,7 +592,7 @@ export default async function getBaseWebpackConfig( ...@@ -592,7 +592,7 @@ export default async function getBaseWebpackConfig(
// Resolve CSS `@import`s and `url()`s // Resolve CSS `@import`s and `url()`s
{ {
loader: require.resolve('css-loader'), loader: require.resolve('css-loader'),
options: { importLoaders: 1, sourceMap: !dev }, options: { importLoaders: 1, sourceMap: true },
}, },
// Compile CSS // Compile CSS
...@@ -614,7 +614,7 @@ export default async function getBaseWebpackConfig( ...@@ -614,7 +614,7 @@ export default async function getBaseWebpackConfig(
stage: 3, stage: 3,
}), }),
], ],
sourceMap: !dev, sourceMap: true,
}, },
}, },
].filter(Boolean), ].filter(Boolean),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment