Skip to content

How to copy the .js file under source to the temp directory? #1118

Answered by Mister-Hope
MonoLogueChi asked this question in Q&A
Discussion options

You must be logged in to vote

One of the easiest way is to start a chokidar instance in onPrepared lifecycle and copy js file to your temp dir. Also you should "watch" those files in devServer.

Also, please remember you are free to use alias. (@source itself actually is a alia)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mister-Hope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants