mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-07 21:07:47 +00:00
29 lines
626 B
JavaScript
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;
|
|
},
|
|
};
|