2023-03-08 00:23:54 +09:00
|
|
|
/** @type {import('next').NextConfig} */
|
2023-03-13 04:06:21 +09:00
|
|
|
|
|
|
|
const withLess = require("next-with-less");
|
|
|
|
|
|
|
|
const nextConfig = withLess({
|
2023-03-08 00:23:54 +09:00
|
|
|
experimental: {
|
|
|
|
appDir: true,
|
|
|
|
},
|
2023-03-10 02:01:40 +09:00
|
|
|
webpack(config) {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.svg$/,
|
|
|
|
use: ["@svgr/webpack"],
|
|
|
|
}); // 针对 SVG 的处理规则
|
2023-03-08 00:23:54 +09:00
|
|
|
|
2023-03-10 02:01:40 +09:00
|
|
|
return config;
|
|
|
|
},
|
2023-03-13 04:06:21 +09:00
|
|
|
});
|
2023-03-10 02:01:40 +09:00
|
|
|
|
|
|
|
module.exports = nextConfig;
|