1.0.0 • Published 1 year ago

web-extpack v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

web-extpack

CLI to bundle a WebExtension using webpack.

It uses a webpack config file with 4 more available properties that set "entry", "output.path" and "output.filename" if not already set:

  • ENTRY_DIR: The entry directory. (default: "src")
  • ENTRY_FILES_EXT: Entry files with those extensions. (default: ".js")
  • OUTPUT_DIR: The output directory. (default: "build")
  • OUTPUT_FILES: (default: "name/bundle.js")

Installation

npm install --save-dev web-extpack

Commands

web-extpack --help
web-extpack setup [options]
web-extpack build [options]

Options

  • --config <path>: Path to the config file. (default: "web-extpack.config.js")

setup options

  • -t, --template <template-name>: Choose a template for the config file. (choices: "basic", "advanced", default: "basic")
  • --src-files: Add empty files in "src" folder if there is no "src/manifest.json".
1.0.0

1 year ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago

0.0.3

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago