problem description
after the new page of mpvue is re-npm run dev, the pages array of app.json files in the dist directory does not increase correspondingly, resulting in a page path error always reported when redirecting. What should I do to solve this problem?
and after each re-npm run dev, the app.json file page array is gone, the manually added path is gone, and the config code in src/main.js is not automatically compiled into app.json.
in addition, what if the mpvue setting container background image is invalid?
related codes
after the new page of mpvue is re-npm run dev, the pages array of app.json files in the dist directory does not increase correspondingly
"pages": [
"pages/index/main",
"pages/logs/main" ],
mpvue setting background image is invalid, solve.
background-image: url("/static/bg.jpg");
Picture path: