Closed mzaini30 closed 1 year ago
I have forked your repository https://stackblitz.com/edit/github-a3hjjs?file=package.json,astro.config.mjs,server.mjs
Could you please download it and test if something wasn't missing for example? If this example works? In your repo, there were no build/dev commands.
Anyway, if it wont work on windows, I think, this C:latihanastro-stylifysrcstylesstylify.css
will be the problem ...
pnpm astro dev
pnpm astro build
I want output static, not server
This actually seems weird, like some bug with Windows and Node.js path.join
...
I will try to reproduce it on some of my Windows devices.
I think the problem because I use Git Bash. In Windows Command Prompt or PowerShell, the path is using \
. But, in Git Bash, the path is /
This should be solved automatically by path.join()
by Node.js as it should use platform specific separators, that's why it is used for joining parts of paths. But in your case, it doesn't use any.
I have cloned your repo, it works fine on Linux and Mac.
I will have to check it out on Windows.
Thanks for the report!
Yes, very difficult coding in Windows. I rewerite my packages after migration from Linux. Hehehehe..
Note&Tips for later readers:
path.join(dir, '**', '*.txt')
=> dir\\**\\*.txt
=> matches * as simple literal, because it is escaped by slash, and not as a wildcard...🤦♂️ => https://github.com/micromatch/micromatch#backslashes@mzaini30 Hi, this should be fixed in the https://github.com/stylify/packages/releases/tag/v0.5.28 latest release. Could you please let me know, if it works?
Also, a configuration hot reload was added, so if you modify the config, the bundler should use the new configuration without the need of restarting Astro again.
@mzaini30 Could you please respond?
Wait
It works.... amazing
Sorry for waiting long
Good, thanks! Closing. In case you find any other bug, please create a new issue :).
Describe the bug
I can't use Stylify on my Astro minimal template. Why?
Reproduction
https://github.com/mzaini30/astro-stylify
Logs
System Info