the project needs json map data for the whole of China. I put the json file in the map file under the static folder.
then use
mapData = require("../../../../static/map/map/"+ self.division.divisionPid +".json");
introduce the json file. As a result, I looked at the file after packing and found that all the json files were packaged into the js file. (as shown below). Excuse me, why don"t you pack the files in?