mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 17:56:25 +02:00
fix(build): add post-build script to fix HTML paths for Chrome extension
- Create scripts/fix-build-paths.js to convert absolute paths to relative - Update build script to run fix-build-paths.js after plasmo build - Add build:raw script for raw plasmo build without fix Problem: Plasmo generates HTML with absolute paths (href="/file.css") which causes ERR_FILE_NOT_FOUND in Chrome extensions. Solution: Post-build script replaces /path with ./path
This commit is contained in:
parent
70226171d8
commit
23cc09b1a7
2 changed files with 65 additions and 1 deletions
|
|
@ -21,7 +21,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"dev": "plasmo dev",
|
||||
"build": "plasmo build",
|
||||
"build": "plasmo build && node scripts/fix-build-paths.js",
|
||||
"build:raw": "plasmo build",
|
||||
"package": "plasmo package"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue