StarkShang / vite-plugin-chrome-extension

A vite plugin to bundle chrome extensions for Manifest V3.
MIT License
467 stars 68 forks source link

Not minifying #15

Open npearson72 opened 3 years ago

npearson72 commented 3 years ago

Wondering if there's a way to configure it to minify all the files in the manifest?

Currently the popup.js file gets minified, but the background and content scripts do not. Example content script:

(function () {
    'use strict';

    console.log("CONTENT");

}());

Is there a way to pass terser configs to the plugin?