We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
my file tree is:
tf-generator: backend: - main.w public: (many website files)
I am trying to compile this code:
let website = new vite.Vite( root: "../public", );
it works from within tf-generator/backend with wing compile main.w
tf-generator/backend
wing compile main.w
but doesn't from within tf-generator with wing compile backend/main.w
tf-generator
wing compile backend/main.w
to take the path relative to the main file/ to the file it's written at
changing the path and be consistent of the compilation source
No response
0.66.5
The text was updated successfully, but these errors were encountered:
Resolved by #6443 with @dirname which can be used to create paths relative to the current source file.
@dirname
Sorry, something went wrong.
No branches or pull requests
I tried this:
my file tree is:
I am trying to compile this code:
This happened:
it works from within
tf-generator/backend
with
wing compile main.w
but doesn't from within
tf-generator
with
wing compile backend/main.w
I expected this:
to take the path relative to the main file/ to the file it's written at
Is there a workaround?
changing the path and be consistent of the compilation source
Anything else?
No response
Wing Version
0.66.5
Node.js Version
No response
Platform(s)
No response
Community Notes
The text was updated successfully, but these errors were encountered: