Html-webpack-plugin: AppCache injection doesnt respect publicPath

Created on 9 Jun 2017  路  6Comments  路  Source: jantimon/html-webpack-plugin

I'm using the appcache plugin:

                new AppCachePlugin({
                    cache: appCacheAssets,
                    network: ["*"],
                    fallback: ["/"],
                    settings: [],
                    exclude: [],
                    output: "index.appcache",
                }),

Along with the this html plugin:

                new HtmlWebpackPlugin({
                    template: "./src/client/index.template",
                    config: config,
                }),

My output section specifies a public path:

        output: {
            filename: output,
            path: outputPath,
            chunkFilename: "[name]-[chunkhash].js",
            pathinfo: true,
            publicPath: "/",
        },

But that publicPath is not respected when the appcache file is injected :(

bug has pr wontfix

All 6 comments

@ccorcos Can you be clearer on how the publicPath is not respected

A repository reproducing the error would be helpful!

@ccorcos that's correct it should be prepended (probably here):

https://github.com/jantimon/html-webpack-plugin/blob/master/index.js#L411-L413

Fixing this would be a breaking change so we should add it to 3.x

This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GerkinDev picture GerkinDev  路  3Comments

klinki picture klinki  路  3Comments

azat-io picture azat-io  路  4Comments

rokoroku picture rokoroku  路  3Comments

hp8wvvvgnj6asjm7 picture hp8wvvvgnj6asjm7  路  3Comments