Closed PrettyCoffee closed 1 year ago
Forgot to share my package.json:
{
"name": "my-extension",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "tsc && vite dev",
"dev:chrome": "tsc && TARGET=chrome vite dev",
"build": "tsc && vite build",
"build:chrome": "tsc && TARGET=chrome vite build",
"validate": "web-ext lint -s dist"
},
"devDependencies": {
"dotenv": "^16.0.2",
"typescript": "^4.4.4",
"vite": "^2.7.9",
"vite-plugin-web-extension": "^1.4.4"
}
}
Thanks for the info, I'll try and get to this sometime this week!
Hit the same issue. Ended up importing scss to index.ts
and then using generated:
syntax in manifest.json
No longer an issue in v3
When running
npm run dev
, the css files will be renamed as html files in the dist folder. Withnpm run build
there is no problem, all files are compiled correctly.e.g.:
src/styles.css
->dist/styles.html
When renaming the
dist/styles.html
todist/styles.css
, everything works as expected.manifest.json:
vite.config.ts:
My files:
Hopefully this is enough info, if you need a demo, let me know :)
Loving the plugin so far btw, thank you for creating this! 🔥