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.jsconst withBabelMinify = moduleexports =
Optionally you can provide Babel Minify options:
// next.config.jsconst withBabelMinify = comments: falsemoduleexports =
Optionally you can add your custom Next.js configuration as parameter
// next.config.jsconst withBabelMinify = moduleexports =