Terser

Minify JS files with terser.

Install

npm i magefront-plugin-terser --save-dev

Usage

import terser from 'magefront-plugin-terser'

export default {
    plugins: [
        terser()
    ]
}

Options

src

The source files to minify. Default is **/*.js.

ignore

A list of paths to ignore.

terserOptions

Options to pass to the terser minifier.


© 2024 Magefront and its contributors.
Licensed under MIT.