Skip to content
New issue

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

How to change the path of pug pages when building a project? #5

Closed
TiroZit opened this issue Nov 9, 2022 · 5 comments
Closed

How to change the path of pug pages when building a project? #5

TiroZit opened this issue Nov 9, 2022 · 5 comments

Comments

@TiroZit
Copy link

TiroZit commented Nov 9, 2022

Hi!

I have configured vituum. At the moment, when the project is being built (npm run build), the pug pages from src/views/ are going to dist/views/ How can I change the path during assembly so that pug pages are assembled in dist/ (without the views folder, that is, in the dist folder itself)

My repository with my configuration: vituum-gulp-template

@lubomirblazekcz
Copy link
Member

Hi @TiroZit

you should use vituum build command, with that it should work correctly

@TiroZit
Copy link
Author

TiroZit commented Nov 11, 2022

I don't use vituum build because it gives this error (image). It seems to me that it does not find my config, although I specify vituum build -c config/vite.build.js. How can this be fixed?

@lubomirblazekcz
Copy link
Member

oh I see, this is currently not supported, config has to be in root of the project, vituum build command doesn't accept any parameters

@TiroZit
Copy link
Author

TiroZit commented Nov 12, 2022

Let's say if I use vitrum build, but still it doesn't solve my question. And what is the difference between vituum build and vite build

@lubomirblazekcz
Copy link
Member

vituum build copies the files directly to dist and not dist/views and also supports file endings in views like .pug or .json

You can try it here https://stackblitz.com/github/vituum/vituum/tree/main/examples/pug?file=package.json just run npm run build to see what happens.

obrazek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants