Skip to content

Commit f90c1ec

Browse files
committed
Merge branch 'release/v0.1.0'
# Conflicts: # README.md # package.json
2 parents 901911f + d0505e9 commit f90c1ec

6 files changed

Lines changed: 9248 additions & 3 deletions

File tree

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,45 @@
1-
# Register Content Scripts plugin for Addon Bone
1+
# @addonbone/reg-cs-plugin
2+
3+
Register Content Scripts plugin for Addon Bone. Automatically injects JS and CSS assets declared under `content_scripts` in your extension manifest.
4+
5+
## Installation
6+
7+
```bash
8+
npm install @addonbone/reg-cs-plugin
9+
# or
10+
yarn add @addonbone/reg-cs-plugin
11+
```
12+
13+
## Usage
14+
15+
In your `adnbn.config.ts`:
16+
17+
```ts
18+
import {defineConfig} from 'adnbn';
19+
import registerContentScriptPlugin from '@addonbone/reg-cs-plugin';
20+
21+
export default defineConfig({
22+
plugins: [registerContentScriptPlugin()],
23+
// other Addon Bone settings...
24+
});
25+
```
26+
27+
### Example `manifest.json`
28+
29+
```json
30+
{
31+
"content_scripts": [
32+
{
33+
"matches": ["https://example.com/*"],
34+
"js": ["content-script.js"],
35+
"css": ["styles.css"],
36+
"all_frames": false
37+
}
38+
]
39+
}
40+
```
41+
42+
## License
43+
44+
MIT © Addon Bone
45+

0 commit comments

Comments
 (0)