Skip to content

Instantly share code, notes, and snippets.

@dextermb
Created March 16, 2021 11:00
Show Gist options
  • Save dextermb/5a44292f4e74d9c31e0cc1670c77320a to your computer and use it in GitHub Desktop.
Save dextermb/5a44292f4e74d9c31e0cc1670c77320a to your computer and use it in GitHub Desktop.
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./*"]
}
},
"exclude": [
"node_modules",
".next"
]
}
module.exports = {
devIndicators: {
autoPrerender: false
},
webpack: config => {
const path = require('path')
config.resolve.alias['~'] = path.resolve(__dirname)
config.module.rules.push({
test: /\.svg$/,
issuer: { test: /\.jsx?$/ },
use: ['@svgr/webpack']
})
return config
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment