Skip to content

Can't minify the output of plugin #45

@bAbolfazl

Description

@bAbolfazl

I have tried to minify the output of this plugin as it said in transform section of documentation:

files: { 'vendor.js': [...] }, transform: { 'vendor.js': code => require("uglify-js").minify(code).code }

But I have faced this error:
throw new ERR_INVALID_ARG_TYPE( TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined

Could you give me a way to do the modification on the output of this plugin with other plugins such as Terser?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions