Init next.js port
This commit is contained in:
26
next.config.js
Executable file
26
next.config.js
Executable 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
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user