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

Assets are only copied before running watch, not during ongoing use of watch #58

Open
joshuahhh opened this issue Dec 12, 2022 · 1 comment

Comments

@joshuahhh
Copy link
Collaborator

Because copying assets to build/assets is done with a prewatch script, it only takes effect right when npm watch is run. If a user adds more assets, they have to restart the npm watch process. (Ideally, a user could run npm watch and then work on their document without having to mess around on the command line anymore.)

@joshuahhh
Copy link
Collaborator Author

For future reference: I've been working around this issue with this command (in fish shell):

while true; ls -d assets/* | entr -d npm run assets; end

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

1 participant