Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace webpack with parcel #252

Merged
merged 7 commits into from
Apr 7, 2021
Merged

Conversation

fregante
Copy link
Contributor

@fregante fregante commented Apr 6, 2021

I was trying to fix #251 but of course webpack’s config was a PITA to update and conform to ESM, so the next logical step was… fregante/browser-extension-template#44

To get started I ran:

npm i -D parcel@nightly @parcel/config-webextension@nightly

@@ -1,3 +1,4 @@
import browser from 'webextension-polyfill';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer globally-available; This is required until fregante/browser-extension-template#48 is resolved

"sinon": "^7.3.2",
"sinon-chrome": "^3.0.1",
"size-plugin": "^1.2.0",
"stylelint": "^10.1.0",
"stylelint": "^13.12.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update was required due to an @import bug

},
"stylelint": {
"extends": "stylelint-config-xo",
"rules": {
"declaration-no-important": null
}
},
"webExt": {
"sourceDir": "distribution"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra: now you can run web-ext run in the root.

@fregante fregante marked this pull request as ready for review April 6, 2021 22:38
@fregante
Copy link
Contributor Author

fregante commented Apr 6, 2021

The options page appears to work. Untested elsewhere because I'm notification zero 😌

@sindresorhus sindresorhus merged commit 65677ce into sindresorhus:main Apr 7, 2021
@sindresorhus
Copy link
Owner

Thanks for doing this. Seems to be working fine.

@fregante fregante deleted the parcellando branch April 7, 2021 04:28
@fregante
Copy link
Contributor Author

fregante commented Apr 7, 2021

🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants