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

Is there anyway to build one more page like options? #25

Closed
dim0147 opened this issue Mar 29, 2021 · 4 comments
Closed

Is there anyway to build one more page like options? #25

dim0147 opened this issue Mar 29, 2021 · 4 comments

Comments

@dim0147
Copy link

dim0147 commented Mar 29, 2021

Hi, currently my extensions have a page called dashboard.html using react for render, I develop and build by changing the original options folder to options_default and create new folders named options but inside this folder is the dashboard site, so whenever I build or develop I need to change the name of the folder to options so it can work, is there any tips for easier than this way? thanks

@khlevon
Copy link

khlevon commented Mar 30, 2021

Hi, yes there is. You can run yarn eject command and then did your custom changes in weback config, including in the build process your custom HTML file. Then you can access it with this url.
chrome-extension://<you_extension_id>/dashboard.html

@dim0147
Copy link
Author

dim0147 commented Mar 30, 2021

Duplicate of #23 I have run yarn eject and get the same error as this issue, and it will be nice if can have a simple instruction on how to add a custom page like options as simple, I got confused to read the config of that files. Thanks

@khlevon
Copy link

khlevon commented Mar 31, 2021

To fix #23 issue copy This folder into your scripts folder which you can find after ejecting. And about instruction, the simplest way is searching in your project appOptionsHtml and appOptionsJs phrases and duplicate them changing options to dashboard

@dim0147
Copy link
Author

dim0147 commented Mar 31, 2021

Thank you very much!!!

@dim0147 dim0147 closed this as completed Mar 31, 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

No branches or pull requests

2 participants