Answer the question
In order to leave comments, you need to log in
How to make npm run build create additional folders (directory structure)?
Playing around with building a one page website. When I execute the npm run build command, it dumps all the pictures into the dist\static\img folder and adds something of its own to the name.
1. The file \src\assets\images\logo.png is changed to \dist\static\img\logo.7933420.png
How can I make file names not change?
2. Harder. There is a file \src\assets\images\doc\001\file001.jpg. After build, it also ends up in the dist\static\img folder, and I want it in the dist\static\img\doc\001\ folder
3. The site will have more files like docx and pdf. I want him to organize files into folders. For example, you plan to create folders: Year, Month, Day. Moreover, checking the names, if the same only then changes the file name.
I look at publicPath, but I don't understand how to use it and there is no public directory in the dist folder.
Haven't dealt with Router yet.
UPD:
1. I found the item - Global CLI configuration - filenameHashing
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