mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-03 04:02:33 +02:00
Added source-map-loader to the Next Webpack config to pass through the source maps from the compiles Slate libraries. (#3445)
This commit is contained in:
@@ -20,4 +20,12 @@ module.exports = {
|
||||
|
||||
return pages
|
||||
},
|
||||
webpack: config => {
|
||||
config.module.rules.push({
|
||||
test: /\.js$/,
|
||||
use: ['source-map-loader'],
|
||||
enforce: 'pre',
|
||||
})
|
||||
return config
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user