extension-boilerplate icon indicating copy to clipboard operation
extension-boilerplate copied to clipboard

alternative: web extension

Open abhijithvijayan opened this issue 4 years ago • 4 comments

As this project seems to be deprecated. I build another starter with webpack that can build cross browser extension as well. (This repo takes the inspiration)

Its got

  • webpack/html/sass/javascript
  • webpack/react/sass/typescript

Combo as well

https://github.com/abhijithvijayan/web-extension-starter

abhijithvijayan avatar Jan 16 '20 22:01 abhijithvijayan

@abhijithvijayan I looked at your project and found that the project built with the yarn package management tool, do you plan to consider creating a branch built on npm?

hhaoao avatar Jan 30 '20 14:01 hhaoao

@hhaoao switching to npm is not that hard.

I personally prefer yarn over npm as it is much faster.

The repo now is set to use yarn v1 (for now) Yarn v2 has breaking changes but is considered to be way faster than yarn v1

If you still wanna use npm instead of yarn, feel free to fork it and customize your own as it is a starter for all folks which is flexible.

I am working on an issue on the repo now.

I can create a branch for npm as well. All it takes is deleting .yarn, yarn.lock, .yarnrc.yml and run npm install

Also, updating scripts from yarn something to npm something

Submit a PR if you can.

Also, feel free to raise an issue on the repo for this issue.

abhijithvijayan avatar Jan 30 '20 14:01 abhijithvijayan

@abhijithvijayan I follow your prompt to delete the relevant files and modify the package.json file:

"build": "npm run build:chrome && npm run build:firefox && npm run build:opera"

But I'm having a small problem,if you know how to fix it please let me know. (I don't know if I'm going to encounter it with yarn),Source map error problems have kept me at bay.

Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://f3e071f8-a623-4e01-9f41-8c1d7afeec8e/js/contentScript.bundle.js
Source Map URL: browser-polyfill.js.map

I didn't modify travis.yml file because I didn't use 'travis-ci'. Tomorrow I'll revise the readme.md to submit a PR.

hhaoao avatar Jan 31 '20 08:01 hhaoao

Please migrate this issue to the original repo

abhijithvijayan avatar Jan 31 '20 09:01 abhijithvijayan