dev模式下一切正常的;
build之后打开dist里面的index.html直接白屏
我看是404,将index.html改成相对路径,还是不行
name="viewport"
content="width=device-width,initial-scale=1"
/>
console里面是这样的
app.51774c8b.js:6 [RcPress] No matching page found for sidebar item "/guide/group-1-item"
app.51774c8b.js:6 [RcPress] No matching page found for sidebar item "/guide/group-2-item"
app.51774c8b.js:1 GET file:///C:/assets/css/7.styles.bd572ada.css net::ERR_FILE_NOT_FOUND
app.51774c8b.js:1 GET file:///C:/assets/js/7.51774c8b.js net::ERR_FILE_NOT_FOUND
app.51774c8b.js:1 GET file:///C:/assets/css/5.styles.88182343.css net::ERR_FILE_NOT_FOUND
app.51774c8b.js:1 GET file:///C:/assets/js/notFoundWrapper.51774c8b.js net::ERR_FILE_NOT_FOUND
app.51774c8b.js:27 Error: Loading CSS chunk 5 failed.
(/assets/css/5.styles.88182343.css)
at HTMLLinkElement.n..n...c.push.n..f.onerror (app.51774c8b.js:1)
app.51774c8b.js:1 Uncaught (in promise) Error: Loading CSS chunk 7 failed.
app.51774c8b.js:1 Uncaught (in promise) Error: Loading CSS chunk 5 failed.
(/assets/css/5.styles.88182343.css)
at HTMLLinkElement.n..n...c.push.n..f.onerror (app.51774c8b.js:1)