Skip to content

How does templates directory end up in dist of the create-next-app package? #78075

Answered by icyJoseph
stainedatom asked this question in Help

You must be logged in to vote

Hi,

ncc uses this tool, webpack-asset-relocator-loader, which figures out what static files are needed for the output build to function correctly. That's what's copying the files into/from template.

I figured out from here:

So, the README.md files, would be ignored by this tool, that's why they called them README-template.md, so that they are copied into the dist folder, and then when y…

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@stainedatom

Answer selected by stainedatom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants