@crxjs/vite-plugin 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +18 -62
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,74 +1,30 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# 
|
|
2
2
|
|
|
3
|
-
[](#typescript)
|
|
3
|
+
[](https://www.npmjs.com/package/rollup-plugin-chrome-extension)
|
|
4
|
+
[](https://github.com/crxjs/rollup-plugin-chrome-extension)
|
|
5
|
+

|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
<img width=200px height=200px src="https://imgur.com/wEXnCYK.png" alt="rollup-plugin-chrome-extension logo"></a>
|
|
7
|
+
## CRXJS Vite Plugin
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
plugin makes it simple.
|
|
9
|
+
> Build a Chrome Extension with [Vite](https://vitejs.dev)⚡
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
RPCE will do the rest.
|
|
11
|
+
CRXJS brings the Vite developer experience to Chrome Extensions:
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
- True HMR for extension pages and content scripts
|
|
14
|
+
- Simple config - everything is in the extension manifest
|
|
15
|
+
- Static asset imports with automatic web-accessible resources
|
|
19
16
|
|
|
20
|
-
##
|
|
17
|
+
## Getting Started
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
[
|
|
19
|
+
See the CRXJS documentation to
|
|
20
|
+
[get started in 90 seconds 🚀](https://crxjs.dev/vite-plugin)
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
npm i rollup-plugin-chrome-extension@beta -D
|
|
27
|
-
```
|
|
22
|
+
## Supporting
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
import { defineConfig } from 'vite'
|
|
33
|
-
import react from '@vitejs/plugin-react'
|
|
34
|
-
import { crx } from 'rollup-plugin-chrome-extension'
|
|
35
|
-
import manifest from './manifest.json'
|
|
36
|
-
|
|
37
|
-
export default defineConfig({
|
|
38
|
-
plugins: [react(), crx({ manifest })],
|
|
39
|
-
})
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Just add new features to your manifest, and RPCE does the rest.
|
|
43
|
-
|
|
44
|
-
## [Documentation for v3](https://www.extend-chrome.dev/rollup-plugin)
|
|
45
|
-
|
|
46
|
-
We have
|
|
47
|
-
[v3 boilerplates](https://www.extend-chrome.dev/rollup-plugin#chrome-extension-boilerplates)
|
|
48
|
-
for [React JavaScript](https://github.com/crxjs/js-react-boilerplate),
|
|
49
|
-
[React TypeScript](https://github.com/crxjs/ts-react-boilerplate) and
|
|
50
|
-
[Svelte](https://github.com/kyrelldixon/svelte-tailwind-extension-boilerplate),
|
|
51
|
-
as well as [instructions](https://www.extend-chrome.dev/rollup-plugin#usage) for
|
|
52
|
-
setting up your project.
|
|
53
|
-
|
|
54
|
-
See the [documentation](https://www.extend-chrome.dev/rollup-plugin) for usage
|
|
55
|
-
and how to get started.
|
|
24
|
+
If these plugins have helped you ship your product faster, please consider
|
|
25
|
+
[sponsoring me](https://github.com/sponsors/jacksteamdev) on GitHub.
|
|
56
26
|
|
|
57
27
|
## Contributing
|
|
58
28
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
🎯 Ongoing development is for v4+ only.
|
|
62
|
-
|
|
63
|
-
👀 Be sure to take a look at the issues before starting to work on a new
|
|
64
|
-
feature.
|
|
65
|
-
|
|
66
|
-
🙏 Please update the tests to cover bug fixes or new features.
|
|
67
|
-
|
|
68
|
-
📕 Documentation for v4 has not yet begun, but you can open an issue for help.
|
|
69
|
-
|
|
70
|
-
✨ If you enjoy using RPCE, please help spread the word!
|
|
71
|
-
|
|
72
|
-
## Development
|
|
73
|
-
|
|
74
|
-
This monorepo uses [pnpm](https://pnpm.io/).
|
|
29
|
+
We encourage pull requests! This is a
|
|
30
|
+
[pnpm monorepo](https://pnpm.io/workspaces), so use pnpm instead of Yarn or npm.
|