Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.03 KB

File metadata and controls

41 lines (29 loc) · 1.03 KB

Chrome Extension Svelte Boilerplate

icon

This boilerplate is a bare minimum for developing chrome extensions with Svelte. And to build it, can choose Webpack 5 or Rollup bundler.

Getting Started

  1. Clone or Download the repo
https://github.com/micro-artwork/chrome-extension-svelte-boilerplate.git
  1. Install NPM packages

package.json file is for Webpack basically, If want to use Rollup bundler to build, replace package.rollup.json with package.json.

npm install
  1. Excute NPM command for development
npm start
  1. Open and browse chrome extensions management
chrome://extensions/
  1. Turn on developer mode and load the unpacked extension from dist folder
./dist
  1. Test

test

Note

Content-scripts template base is Svelte. But if won't need to insert UI components, need not Svelte and can use Vanilla JS.