css mirroring fail with static files in sub-directory
See original GitHub issueEnvironment (please complete the following information):
- OS (e.g., Windows 10):
- Extension version (e.g., 1.2.3):
Describe the bug:
If I put my html, css, and js in a subdirectory of my project folder, updating css doesn’t work. I get the following error:
Repro steps:
- Create a project containing a single folder titled ‘public’
- Add index.html, script.js, and style.css to the public folder
- link the script and css files in the html, and include some css to edit later via mirroring
- create an edge launch configuration with the property
"webRoot": "${workspaceFolder}/public"
and a url port of5500
(for the live server default) - configure live server to vend only the public folder and start it
- launch edge
- open dev tools
- uncheck a property in one of your rules
Expected behavior:
I expected the css property to be updated in my css file.
Additional context:
I notice if I leave everything in the project root, and remove the public
extension on the webRoot
property everything just works.
Alternatively, If I:
- remove the public extension from webRoot and add it to the launch url
- add a base tag to html to load js and css correctly
- serve the project home directory instead of public css is editable. then everything also works, but now I have ‘public’ in my urls.
basically, it seems like the paths have to match. If the browser fetches /public/style.css then it is okay to have style.css in the public sub-directory.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
How to set Django to read static files store in ...
You could do it by putting the images folder explicitly in the settings like: STATICFILES_DIRS = ( os.path.join(PROJECT_ROOT, '.
Read more >nginx can only serve static files from subdirectories, not the ...
I'm trying to place my style.css in the same directory as the index.html (which loads fine), but it throws a 500 error when...
Read more >Flask by example 3 (Templating, Authentiation and Static assets)
We now have a new folder templates that contains our html files and a static folder and it's subfolders which holds our static...
Read more >More detailed passthrough copy options #214
I'm trying to use manual passthrough copy to copy some files over to my dist directory - but the outcome is not what...
Read more >Redirecting and Remapping with mod_rewrite
This document supplements the mod_rewrite reference documentation. It describes how you can use mod_rewrite to redirect and remap request.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah I see the issue now. We have already fixed this issue, but won’t be public until our next release. We aim to get the next version out sometime near the end of next week. Thanks for your patience.
New version released. Closing issue.