Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Enable sourcemaps in dev for both postcss and sass #298

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 9 additions & 3 deletions packages/next-css/css-loader-config.js
Expand Up @@ -61,9 +61,15 @@ module.exports = (

postcssLoader = {
loader: 'postcss-loader',
options: Object.assign({}, postcssLoaderOptions, {
config: postcssOptionsConfig
})
options: Object.assign(
{
sourceMap: dev
},
postcssLoaderOptions,
{
config: postcssOptionsConfig
}
)
}
}

Expand Down
7 changes: 6 additions & 1 deletion packages/next-sass/index.js
Expand Up @@ -27,7 +27,12 @@ module.exports = (nextConfig = {}) => {
loaders: [
{
loader: 'sass-loader',
options: sassLoaderOptions
options: Object.assign(
{
sourceMap: dev
},
sassLoaderOptions
)
}
]
})
Expand Down