Answer the question
In order to leave comments, you need to log in
How to read file created by npm run serve file?
Hello, I need to create a file both in dist directory (after npm run build) and in (virtual directory after npm run serve - but how to get there)
I can read file in dist from npm run build
fs.readFileSync(path.resolve(__dirname, "dist", "index.html"),"utf8"),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question