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

refine builder #1

Merged
merged 2 commits into from
Dec 3, 2021
Merged

refine builder #1

merged 2 commits into from
Dec 3, 2021

Conversation

baurine
Copy link
Contributor

@baurine baurine commented Dec 3, 2021

hi @awran5 , thanks for your template, I used it in my project, and I found we can do some refinement for it so I submit this PR.

What did:

  1. Change the output dir to dist instead of public to avoid version control conflicts.
  2. Unify the dev and production builder
  3. add { ignoreInitial: true } for watch() to avoid meaningless rebuild at the first time, without this option, it rebuilds tons of times and is very slow to show the first page for the large project.
  4. watch all files include .css, not just .ts/.tsx.

I think this PR should apply to esbuild-react-app-js-template as well if this PR is merged.

@awran5
Copy link
Owner

awran5 commented Dec 3, 2021

@baurine Nice add .. Thank you very mush!

@baurine baurine deleted the refine_builder branch December 5, 2021 08:10
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

Successfully merging this pull request may close these issues.

2 participants