Skip to content

Tushar12222/Crust

Repository files navigation

To start using the starter template:

📣 (Only Windows) In case you get a build error, add the root folder to the exclusion list of the windows defender.

  1. Run command:

cargo generate --git https://github.com/Tushar12222/Crust
  1. Then you will be prompted for the project name and extension name.

  2. Run the command:

npm install
  1. Thats it!!! You can start building your extension.

  2. To run the development server:

npm run dev
  1. To build the extension and test it on chrome , run command:

npm run prod
  1. Then add the manifest.json (present in the root) to the dist folder generated.

  2. Open index.html and move the content within the script tag to another new file within dist named "init.js".

  3. To the script tag add the following attribute:

src="init.js"
  1. Make sure nothing is present within the script tag once you have moved the contents to init.js.

  2. Remove the attribute "integrity="hash"" from the two link tags present in the head of index.html.

  3. Then head over to:

chrome://extensions
  1. Toggle the developer mode on.

  2. Select the "Load Unpacked" option.

  3. Select the dist folder within your root directory.

  4. Voila!!! YOu have your extension on chrome.

About

Build Chrome Extensions with Yew in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published