Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter file name of packaged zip file #151

Closed
ilan-toluna opened this issue Mar 26, 2019 · 2 comments
Closed

Alter file name of packaged zip file #151

ilan-toluna opened this issue Mar 26, 2019 · 2 comments

Comments

@ilan-toluna
Copy link

Hi
How can i change the zip file name that is created after running "npm run build chrome"?
Is it possible by adding a config to webextension-toolbox-config.js?
Thanks

@niklv
Copy link

niklv commented May 22, 2019

@ilan-toluna You can get access to ZipPlugin that toolbox use:

const ZipPlugin = require('zip-webpack-plugin');

module.exports = {
    webpack: config => {
        const zipper = config.plugins.find(plugin => plugin instanceof ZipPlugin);
        if (zipper) zipper.options.filename = 'test.zip';
        return config;
    }
};

@tm1000
Copy link
Member

tm1000 commented Mar 7, 2022

#173 will solve this

@tm1000 tm1000 closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants