Paul W.
e3c70632e2
Remove custom html from markdown, clean-up UI (again) Signed-off-by: Paul W. <lambdapaul@protonmail.com>
47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
const config = {
|
|
i18n: {
|
|
locales: ['en-US'],
|
|
defaultLocale: 'en-US'
|
|
},
|
|
webpack: (config, _options) => {
|
|
config.module.rules.push(
|
|
{
|
|
test: /\.ya?ml$/,
|
|
use: 'js-yaml-loader',
|
|
|
|
},
|
|
{
|
|
test: /\.svg$/,
|
|
use: [{ loader: '@svgr/webpack' }],
|
|
},
|
|
{
|
|
test: /\.md$/,
|
|
type: 'asset/source',
|
|
},
|
|
{
|
|
test: /\.otf$/,
|
|
type: 'asset/resource',
|
|
},
|
|
{
|
|
test: /\.txt$/,
|
|
type: 'asset/source',
|
|
},
|
|
{
|
|
resourceQuery: /raw/,
|
|
type: 'asset/source',
|
|
},
|
|
);
|
|
|
|
return config;
|
|
},
|
|
};
|
|
|
|
if (process.env.ANALYZE) {
|
|
const bundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: true
|
|
});
|
|
module.exports = bundleAnalyzer(config);
|
|
} else {
|
|
module.exports = config;
|
|
}
|