feat: image generator

This commit is contained in:
Morten Olsen
2022-03-30 13:46:09 +02:00
parent 928d2ffaa2
commit a549a92077
17 changed files with 452 additions and 23 deletions

View File

@@ -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