mirror of
https://github.com/ad044/lainTSX.git
synced 2024-10-22 15:09:05 +00:00
25 lines
544 B
JavaScript
25 lines
544 B
JavaScript
|
/** @type {import('next').NextConfig} */
|
||
|
const nextConfig = {
|
||
|
webpack(config, { isServer }) {
|
||
|
// Allow importing of shader files (e.g. `.glsl` -- filenames below)
|
||
|
// @see: https://github.com/glslify/glslify-loader
|
||
|
config.module.rules.push(
|
||
|
{
|
||
|
test: /\.(glsl|vs|fs|vert|frag|ps)$/,
|
||
|
exclude: /node_modules/,
|
||
|
use: ["raw-loader"],
|
||
|
},
|
||
|
{
|
||
|
test: /\.(mp4|vtt)$/,
|
||
|
use: "file-loader",
|
||
|
}
|
||
|
);
|
||
|
|
||
|
return config;
|
||
|
},
|
||
|
|
||
|
reactStrictMode: true,
|
||
|
};
|
||
|
|
||
|
module.exports = nextConfig;
|