Init next.js port

This commit is contained in:
2021-12-07 22:38:31 -05:00
parent 6fde6b4f15
commit 2db4c28590
38 changed files with 18522 additions and 2 deletions
Executable
+26
View File
@@ -0,0 +1,26 @@
module.exports = {
webpack: (config, options) => {
config.experiments = { asset: true };
config.module.rules.push(
{
test: /\.svg$/,
use: [{ loader: "@svgr/webpack" }]
},
{
test: /\.md$/,
type: 'asset/source'
},
{
test: /\.otf$/,
type: 'asset/resource'
},
{
resourceQuery: /raw/,
type: 'asset/source',
}
);
return config
},
}