Closed aklinker1 closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
vite-plugin-web-extension-docs-v1 | 🔄 Building (Inspect) | Dec 18, 2022 at 10:46PM (UTC) | |
vite-plugin-web-extension-docs-v2 | 🔄 Building (Inspect) | Dec 18, 2022 at 10:46PM (UTC) |
v2.0.0-apha1
has been released, feature complete minus HMR
Alright, after alpha4, the plugin is working on my own extensions, I use watch mode for development. I need add back HMR and we'll be good to go!
I've published 2.0.0-rc1
to the next
tag and updated the documentation. I'll be trying it out in my extensions over the next few days.
RC2 is out with the new web-ext config loading changes
Alright, I've tested 2.0.0-rc10
on two of my personal extensions, and it is working! PR checks are all passing.
I'm gonna merge this and officially release v2.
What shold i use instead libModeViteConfig
? Can you add it im migrate v2 instructions?
update: i found it
libModeViteConfig
> scriptViteConfig
Yup, I'll update the docs, I forgot to add that
This is a full restructure of the application's code. Better organized, more extensible, unit testable, etc. The main change is the build process:
Old Build Process
New Build Process
Essentially, I was combining unrelated inputs into a single vite build, but am no longer. This provides more flexibility around when each individual build can be executed, such as waiting to write the manifest until the other builds have finished so we can user their outputs as the paths in the final manifest.json.
Content script CSS files are now built individually, separate from the HTML files.
Breaking changes
generated:
prefix - these files are added to the manifest automaticallyumd
toiife
for JS entrypointsassets
orwriteAssetsTo
options, usepublic
insteadwriteManifestTo
optionoptions.serviceWorkerType
type: module
in package.json (due to config loading forweb-ext
)options.verbose
, use Vite's--debug
flag insteadTodo
assets
option in favor ofpublic
vite build
vite build --watch
web-ext
serviceWorkerType
ResolvedConfig
instead ofInlineConfig
options.verbose
in favor of Vite's--debug
flagchrome_override_url.*
andchrome_settings_overrides.homepage
inputs are automatically built along side the popup (see #45)Future work:
v1.vite-plugin-web-extension.aklinker1.io
andvite-plugin-web-extension.aklinker1.io