You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project where a big part of the api consists of static json files inside the public directory. The json files are updated or added every few minutes and the project is rebuilt and redeployed. Running npm run build is not needed/practical because the code is not changing and it takes too long. So currently I just do this:
cp -r public/* dist/
It would be great if there was a command/flag like npm run build --update-public-directory that updates the public dir inside dist without rebuilding the codebase.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project where a big part of the api consists of static json files inside the public directory. The json files are updated or added every few minutes and the project is rebuilt and redeployed. Running
npm run build
is not needed/practical because the code is not changing and it takes too long. So currently I just do this:It would be great if there was a command/flag like
npm run build --update-public-directory
that updates the public dir inside dist without rebuilding the codebase.Beta Was this translation helpful? Give feedback.
All reactions