Files
unicorn-utterances/next.config.js
Corbin Crutchley 42ee7df0b9 chore: fix build
2021-12-10 12:58:30 -08:00

29 lines
626 B
JavaScript

const path = require("path");
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
webpack: (config) => {
config.plugins.push(
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, "content/blog"),
to: path.resolve(__dirname, "public/posts"),
},
{
from: path.resolve(__dirname, "content/data"),
to: path.resolve(__dirname, "public/unicorns"),
},
],
})
);
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"],
});
return config;
},
};