0.1.13 • Published 4 years ago

chrome-extension-archive-webpack-plugin v0.1.13

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

chrome-extension-archive-webpack-plugin

npm version

Create Chrome Extension archive for submitting to Chrome Web Store

Installation

npm i --save-dev html-webpack-plugin
yarn add --dev html-webpack-plugin

Options

NameTypeDefaultDescription
algorithmstringzipThe compression algorithm
filenamestringdirectory optionName of the archive
directorystringundefinedPath to the target directory
tostring.Output path
verbosebooleanfalseOutputs logs to console

Usage

Basic

import { ChromeExtensionArchiveWebpackPluginOptions } from 'chrome-extension-archive-webpack-plugin'

modules.exports = {
    plugins: [
        // This will create `build.zip` in current directory
        new ChromeExtensionArchiveWebpackPluginOptions({
            directory: 'build'
        })
    ]
}

Archive build directory

import { ChromeExtensionArchiveWebpackPluginOptions } from 'chrome-extension-archive-webpack-plugin'

modules.exports = {
    plugins: [
        // This will create `build.zip` from `build/` to `build/`
        new ChromeExtensionArchiveWebpackPluginOptions({
            directory: 'build',
            to: 'build'
        })
    ]
}

Change filename

import { ChromeExtensionArchiveWebpackPluginOptions } from 'chrome-extension-archive-webpack-plugin'

modules.exports = {
    plugins: [
        // This will create `myzip.zip` in current directory
        new ChromeExtensionArchiveWebpackPluginOptions({
            directory: 'build',
            filename: 'myzip'
        })
    ]
}

License

MIT

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago