-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add BrowserSync support #2
Comments
Hi, I would like to comment here since I have an initial solution but dont know if I am missing any scenario, any help would be appreciated ;) Currently I have this set up :
This will start webpack server on localhost:8080, so I can access any assets by requesting Php backend application is running in another port and browser-sync is proxying every request sent to it to this backend application. Everything nice and dandy so far. Is this what we look after for this issue ? Points noticed:
I haven't created PR basically because of point 1. I would like to check for dependencies but it doesn't look right just add that logic in Any other ideas ? |
Awesome! About (1), you're right - we'll need to expand |
Happy to help ;), I am really interested to get best experience with the library :) ... I will need some time though, this week and next are packt for me, will see if find some free time on weekend to make a basic prototype to start discussion around. cheers |
This PR was squashed before being merged into the master branch (closes #99). Discussion ---------- Refactor plugin configuration Extract encore built in plugin configuration logic into plugin utils. First step toward allowing to be able to configure plugins through options and have more modular integration for plugins inside encore. From now on only public API with proper options is needed, for most cases. This changes are internals and tries to improve plugin architecture inside encore. Please take a look on it and feedback are welcome :). So far I see improvements for several issues: * #2 - Point .2 ...for plugins we should do the same as for loaders, from point of view of module split (utilities). * #63 - Better (more modular) integration of the plugin as well its configuration. * #65 - Same as #63 * #79 - Now it should be possible to pass options and/or check for flags to apply plugin or not. * #87 - Some small steps to make clean plugin more configurable. Public API still need to be changed though. thanks in advance. Commits ------- 65adfdc Refactor plugin configuration
This PR was squashed before being merged into the master branch (closes #101). Discussion ---------- Forked typescript type checking This PR fixes: #63 it should be possible to merge also with #99 directly. Open points: Regarding point .1 in #2 > If this plugin is added. we need to check dependency is added using loader-features.js. This module name is getting name from loaders, we are not adding a loader here but a plugin. Maybe some more general module is needed for checking features? After implementing this I realize that as soon as you require a module which doesn't exist node throws an error, we don't even go through error catch from encore. So possible solutions I see for this pending point are: 1. We don't refactor `loader-features.js` file and we still will get a loud error when trying to use some plugin not installed. From error is clear whats need to be done. 2. We refactor `loader-features.js` to be named more general and we include plugins dependencies also there as intended initially. But this way we need to check for missing packages earlier in `WebpackConfig.js` like I am doing now in this PR. I like either solutions the same, I would like to get feedback on what do you guys think about it? thanks in advance. Commits ------- 7a7e399 Forked typescript type checking
I can't really say from the related commits but is this feature implemented or only in part? If it is maybe close the issue with that statement to clarify for others stumbling upon it? |
The reason I guess this haven't been touch for so long is this comment
Not sure what else to do from my side :( |
Ah I seem to have missed that, thanks for the quick response. Sad to see such a lack of response from browsersync. Looking at the amount of open issues there I assume they don't have the capacity to handle all issues. |
No description provided.
The text was updated successfully, but these errors were encountered: