-
Notifications
You must be signed in to change notification settings - Fork 14
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
Bundle files #9
Comments
Hey thank you for the suggestion! The main issue I'm having now is that I want to load the libraries files from This would help a lot when importing the fonts for the |
@AssisrMatheus I think I understand. Not a web guy so bear with me! Help me at least characterize the issue properly. I'll update it as we go.
|
No problem at all! I appreciate your help a lot.
|
@AssisrMatheus its been great! I appreciate your answers, they're relatable and it helps me think. I have nothing real against either one, but I'd been feeling jaded about web-tech and maintainership for a long time. Its turned around and thats on you. For real, just happy to be here.
I'll give it a shot! You reminded me of tasks, we can probably smooth out any hacky stuff the plugin introduces. We can have them preempt the webpack if we have to.
I think I just get spooked by html (lol) in the middle of code (gotem) because of how different the references can be, wondering about scoping, etc. I'm not really sure what I meant with that question now, don't worry about it. Sounds like I was spooked.
I'll keep that in mind! Thanks again. |
Oh maaan thank you for that! I also feel like this from time to time but then I get some bursts and it's when I create things like this 😆
Well, you don't need to use gulp specifically, since the webpack copy might already help with it. I was just explaining my thoughts a bit
No problem! That does get confusing from time to time. If the extension start getting bigger I'll try to find a way to read from a separate file maybe, if it's ever possible, the current setup is just a copy of the example they provide. |
@AssisrMatheus yeah man, you're a great leader. I've always had a hard time acclimating to a lot of the habits and vibe I see all over GitHub. I'm stubborn and knew I'd be improvising on a lot, but wasn't tryna throw away what works out of ignorance. After contributing here (for what, a week?) it was pretty clear what actually makes the difference as a maintainer. Also, I slowly had to face the fact that I liked working for you more than I did for me 😂. Good times. |
Haha I can relate! When I began coding I really didn't like doing some random projects I wanted to do. But working for other's(and with others) helped me a lot and I think I learned much more, since I was getting feedback etc. |
Bundling with Webpack reduces extension size. Generally, it does so without breaking links and references throughout the code.
Our main Webview requires access to external modules. It can access local files, but methods of doing so are limited for security reasons. So far, complying with these restrictions and compiling with Webpack results in a broken build.
The current workaround is inelegant and involves copying .js files from the modules to the 'media/lib' folder, then reading them at runtime as shown below:
sidebar-markdown-notes/src/webviewProvider.ts
Line 95 in 31d2acd
See conversation below. Feel free to make corrections to this summary of the issue or ask for help if attempting a fix.
The text was updated successfully, but these errors were encountered: