Vue packaging exception, solving

The resource http://localhost:8889/css/main.b3d3d596.css was preloaded using link preload but not used within a few seconds from the window"s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.

the orange message appears in the console after about 3 seconds, the interface is blank, and there is no rendering

Apr.09,2021

Baidu's question about vue cli packaging

I remember that I need to modify some webpack configuration


is using vue-cli@3. Try rebuilding the project or ide/html-and-static-assets.html-sharppreload" rel=" nofollow noreferrer "> this document


vue-cli@3

you can try to modify vue.config.js.

chainWebpack: config => {
    //  preload 
    config.plugins.delete('preload');
},

if the screen is still white, try to delete the custom configuration for webpack (if there is such a custom configuration):

configureWebpack: {
    optimization: {
        splitChunks: {
            minSize: 10000,
            maxSize: 200000
        }
    }
}
Try adding lintOnSave: false to

vue.config.js.


ask, have you finally found out what the reason is?

Menu