Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kisiwu/web-extpack
CLI to bundle a WebExtension using webpack
https://github.com/kisiwu/web-extpack
webextension webpack
Last synced: about 2 months ago
JSON representation
CLI to bundle a WebExtension using webpack
- Host: GitHub
- URL: https://github.com/kisiwu/web-extpack
- Owner: kisiwu
- License: mit
- Created: 2018-04-13T22:38:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T08:30:12.000Z (almost 2 years ago)
- Last Synced: 2023-08-24T08:27:58.964Z (over 1 year ago)
- Topics: webextension, webpack
- Language: JavaScript
- Homepage:
- Size: 222 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# web-extpack
CLI to bundle a WebExtension using webpack.It uses a [webpack](https://www.npmjs.com/package/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
```sh
npm install --save-dev web-extpack
```## Commands
```
web-extpack --help
``````
web-extpack setup [options]
``````
web-extpack build [options]
```## Options
- `--config `: Path to the config file. (default: "web-extpack.config.js")### setup options
- `-t, --template `: 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".