0.0.3 • Published 5 years ago

@zeit/next-source-maps v0.0.3

Weekly downloads
162,644
License
MIT
Repository
github
Last release
5 years ago

Next.js + Source Maps

Generate source maps during production build in your Next.js project

Installation

npm install --save @zeit/next-source-maps

or

yarn add @zeit/next-source-maps

Usage with environment variables

Create a next.config.js

// next.config.js
const withSourceMaps = require('@zeit/next-source-maps')
module.exports = withSourceMaps({
  webpack(config, options) {
    return config
  }
})

Then you can run a regular build command and source maps will be outputted for the bundles

npm run build