@hashicorp/next-prebuild

0.0.1 • Public • Published

Next.js + Prebuild Webpack Plugin

Use Prebuild Webpack Plugin with Next.js

Installation

npm install --save @hashicorp/next-prebuild

or

yarn add @hashicorp/next-prebuild

Usage

Create a next.config.js in your project

// next.config.js
const withPrebuild = require("@hashicorp/next-prebuild");
module.exports = withPrebuild({
  /* options */
})();

All prebuild options are documented here

Optionally you can add your custom Next.js configuration as parameter

// next.config.js
const withPrebuild = require("@hashicorp/next-prebuild");
module.exports = withPrebuild()({
  webpack(config, options) {
    return config;
  }
});

Package Sidebar

Install

npm i @hashicorp/next-prebuild

Weekly Downloads

1

Version

0.0.1

License

MPL-2.0

Unpacked Size

19 kB

Total Files

5

Last publish

Collaborators

  • abhishek-hashicorp
  • dstaley
  • cameronperera
  • alexju
  • consul-ui-services
  • wenincode-hashicorp
  • hashicb
  • britt.lindgren
  • paulhcp
  • nandereck
  • tstormk
  • hashibot-hds
  • lackeyjb1
  • youriwims
  • jpogran
  • _natmegs
  • thrashr888
  • melsumner
  • mwickett
  • didoo
  • zchsh
  • hcitsec
  • gregone
  • meirish
  • enmod
  • kaxcode
  • anubhavmishra-hashicorp
  • hashibot-web
  • cstitt-hashi
  • kstraut
  • mocohen
  • dhaulagiri