Closed jpurnell closed 4 weeks ago
Hello! Thank you for this. However, I believe the leading slash is correct. Why would you want to remove it?
When I run a simple project with the default template, if you open the index.html file from the build folder, the browser can’t find the css files’ relative location (at least on my local machine), and I have to remove the leading slash. Maybe we change the build settings to make that leading slash toggle-able?
On Apr 2, 2024, at 12:30 PM, Paul Hudson @.***> wrote:
Hello! Thank you for this. However, I believe the leading slash is correct. Why would you want to remove it?
— Reply to this email directly, view it on GitHub https://github.com/twostraws/Ignite/pull/21#issuecomment-2032522295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDGITV3KJRQXNJXWEBXW3Y3LMK3AVCNFSM6AAAAABFTWZ7O2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSGUZDEMRZGU. You are receiving this because you authored the thread.
Broadly speaking, most sites aren't server up as local files, and are instead provided from web servers. If you want to run a local server for testing purposes, open your Terminal app then cd
into the Build directory and run python3 -m http.server
. We are currently trialing a command-line tool to make this a little easier (https://github.com/twostraws/Ignite/pull/17), but that's not fully delivered yet.
This repository now includes a CLI tool that makes it easier to run a local web server for testing, so I'm going to close this PR.
In the default template, the locations of CSS files are prefixed with a "/" This modifies the MetaLink file to remove this prefix