Closed alterastro closed 2 years ago
Hello @alterastro,
can you please run the tests from the repo directory:
npm run test
Whether all tests will be passed on your system?
See the test alias in extends. See the test alias in include. See the test alias in require.
All tests are passed on:
Hello @webdiscus,
Did as in your suggestion, but it didn't help. Unfortunately, this solution does not help either for UI or Layouts. I still get concatenated paths (
Hello. @alterastro,
I have fixed the issues on windows (tested on Win 10), ver. 1.5.1. Can you please try test it?
Hello. @alterastro,
I have fixed the issues on windows (tested on Win 10), ver. 1.5.1. Can you please try test it?
Everything works great now! Thank you so much for your work!
(my system: Windows 10 21H1, 19043.1348)
Hello @alterastro,
very nice :-) Then this issue can be closed.
File paths are not handled correctly when using the alias in
include
andextends
. The path specified in the alias is always glued to the path to the current template file.In the case of
extends
, I getD:\\projects\\new-app\\src\\pages\\main\\D:\\projects\\new-app\\src\\layouts\\default\\default.pug
And in the case ofinclude
-D:\\projects\\new-app\\src\\layouts\\default\\D:\\projects\\UI\\src\\components\\XApp\\XApp.pug
In this case, the correct values for the alias are displayed in the console:
The following aliases have been added to the webpack config:
My project uses the following structure:
Layout code:
Page code: