jigargosar / try-rollup-chrome-ext

trying out dev workflow for chrome extension using rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript Chrome Extension Boilerplate

GitHub last commit

A basic boilerplate that gets you started quickly. It supports modern, modular JavaScript and automatic reloading during development. ESLint and Prettier included.

This is a great starting place for a proof of concept or a simple Chrome extension. If you need more, like React and CSS imports, check out our React boilerplate.

Get Started

Type this into your terminal:

git clone https://github.com/extend-chrome/javascript-boilerplate
npm install

Development

For development with automatic reloading:

npm run start

Open the Extensions Dashboard, make sure "Developer mode" is switched on, click "Load unpacked", and choose the dist folder.

Production

You'll want to make a production build when it's time to publish your Chrome Extension. Run the following line:

npm run build

This will create a ZIP file with your package name and version in the releases folder.

Source Layout

Your manifest is at src/manifest.json, and Rollup will bundle any files you include here. All the filepaths in your manifest should point to files in src.

About

trying out dev workflow for chrome extension using rollup

License:MIT License


Languages

Language:JavaScript 100.0%