Nuns Playing Monopoly

    next-babel-minify

    1.0.0 • Public • Published

    next-babel-minify

    Change UglifyJS for Babel Minify to minify the code of your application.

    Installation

    npm install --save next-babel-minify
    

    or

    yarn add next-babel-minify
    

    Usage

    Create a next.config.js in your project

    // next.config.js
    const withBabelMinify = require('next-babel-minify')()
    module.exports = withBabelMinify()

    Optionally you can provide Babel Minify options:

    // next.config.js
    const withBabelMinify = require('next-babel-minify')({
      comments: false
    })
    module.exports = withBabelMinify()

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

    // next.config.js
    const withBabelMinify = require('next-babel-minify')()
    module.exports = withBabelMinify({
      webpack(config, options) {
        return config
      }
    })

    Install

    npm i next-babel-minify

    DownloadsWeekly Downloads

    79

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.16 kB

    Total Files

    4

    Last publish

    Collaborators

    • sergiodxa