mirror of
https://github.com/primer/css.git
synced 2025-01-05 21:22:57 +03:00
simplify webpack rules
This commit is contained in:
parent
0ae132b362
commit
40390e5fe6
@ -11,16 +11,14 @@ module.exports = (pluginOptions = {}) => (nextConfig = {}) => {
|
||||
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
use: {loader: '@svgr/webpack'}
|
||||
use: '@svgr/webpack'
|
||||
})
|
||||
|
||||
config.module.rules.push({
|
||||
test,
|
||||
use: [
|
||||
options.defaultLoaders.babel,
|
||||
{
|
||||
loader: 'mdx-loader',
|
||||
}
|
||||
'mdx-loader'
|
||||
]
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user