mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
feat: image generator
This commit is contained in:
@@ -2,6 +2,7 @@ const withPlugins = require("next-compose-plugins");
|
||||
|
||||
const withImages = require("./config/plugins/withImages.js");
|
||||
const withLatex = require('./config/plugins/withLatex');
|
||||
const withImageGenerator = require('./config/plugins/withImageGenerator');
|
||||
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
||||
enabled: process.env.ANALYZE === "true",
|
||||
});
|
||||
@@ -15,6 +16,7 @@ const nextConfig = {
|
||||
|
||||
module.exports = withPlugins([
|
||||
withLatex,
|
||||
withImageGenerator,
|
||||
[withImages,{
|
||||
esModule: true, // using ES modules is beneficial in the case of module concatenation and tree shaking.
|
||||
inlineImageLimit: 0, // disable image inlining to data:base64
|
||||
|
||||
Reference in New Issue
Block a user