Project Structure and Build Output Configuration
Hi there,
I need assistance with configuring my project to build the output folder one directory above the current level. This setup is necessary due to hosting requirements. Specifically, my hosting provider mandates that the main JavaScript file
(app.js)
and package.json
be located in the same directory, with the type field in package.json
set to commonjs
.
Here’s the structure I aim to achieve:
I want to maintain a package.json with type: "module" for building my project and then eject it one folder above. I am using pnpm for package management.
My current app configuration looks like this:
Could you please help me adjust the configuration to achieve this setup?3 Replies
try customising
server.output.dir
fixed!
thanks!