chrisvfritz / prerender-spa-plugin

Prerenders static HTML in a single-page application.
MIT License
7.31k stars 633 forks source link

Unable to prerender all routes! #501

Open todaynogada opened 2 years ago

todaynogada commented 2 years ago

Unable to prerender all routes! help I am using it integrated with laravle mix. and vue3 qgegeqgegqqeg

    plugins: [
        new PrerenderSPAPlugin({
            staticDir: __dirname, // The path to the folder where index.html is.
            outputDir: path.join(__dirname, 'prerendered'),
            indexPath: path.join(__dirname, 'dist', 'index.html'),
            routes: ['/'],
            renderer: new Renderer({
                injectProperty: "__PRERENDER_INJECTED",
                inject: {
                    prerendered: false,
                },
                renderAfterElementExists: "[ready]",
                headless: true,
                maxConcurrentRoutes: 1,
                ignoreHTTPSErrors: false,
                renderAfterTime: 0,
            }),

        })
    ]
Tofandel commented 2 years ago

Duplicate of https://github.com/chrisvfritz/prerender-spa-plugin/issues/414, it's not compatible with webpack 5

todaynogada commented 2 years ago

414 중복 , webpack 5와 호환되지 않습니다.

tahnk you