Learning-Dashboard / LD-metrics-extension

MIT License
1 stars 0 forks source link

Chrome Extension with React 18 and Webpack 5 for TFG

npm npm-download npm

Info

Tech Stack

This is a basic Chrome Extensions boilerplate to help you write modular and modern Javascript code, load CSS easily and automatic reload the browser on code changes.

This project is updated with:

Installing and Running

Procedures:

  1. Check if your Node.js version is >= 18.
  2. Clone this repository.
  3. Change the package's name, description, and repository fields in package.json.
  4. Change the name of your extension on src/manifest.json.
  5. Run npm install to install the dependencies.
  6. Run npm start
  7. Load your extension on Chrome following:
    1. Access chrome://extensions/
    2. Check Developer mode
    3. Click on Load unpacked extension
    4. Select the build folder.
  8. Happy hacking.

Structure

All your extension's code must be placed in the src folder.

Packing

After the development of your extension run the command

$ NODE_ENV=production npm run build

Thanks!