Skip to content

Instantly share code, notes, and snippets.

@jkhaui
Created January 27, 2019 07:51
Show Gist options
  • Save jkhaui/80495d215525503d05905de389f2233a to your computer and use it in GitHub Desktop.
Save jkhaui/80495d215525503d05905de389f2233a to your computer and use it in GitHub Desktop.
const withPlugins = require('next-compose-plugins');
const withTM = require('next-plugin-transpile-modules');
const withOptimizedImages = require('next-optimized-images');
const withFonts = require('next-fonts');
const withCSS = require('@zeit/next-css');
module.exports = withPlugins(
[
[
withTM,
{
transpileModules: ['reusecore'],
},
],
withOptimizedImages,
withFonts,
withCSS,
],
{
distDir: '../functions/next',
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment