This is a fork of chrome-extension-svelte-boilerplate by d-lowl
A boilerplate for Chrome Extensions using Svelte and Webpack with automatic refresh.
- Run
yarn
. - Change the package's name and description on
package.json
. - Change the name of your extension on
src/manifest.json
. - Run
yarn dev
- Load your extension on Chrome Development mode.
All entry points of the content scripts should be excluded from hot reloading.
Add it to excludeEntriesToHotReload
in webpack.dev.js
.
excludeEntriesToHotReload: [myContentScript]
Default Port: 4444
. Change it in webpack.dev.js
.
yarn build
Place all your secrets in .env
.
Remember to add .env
to .gitignore
on your commit.