Load Html plugin after favicons plugin.

This commit is contained in:
Dillon Kearns 2019-08-19 16:46:20 -07:00
parent db33e9463a
commit 2fd8320451

View File

@ -80,12 +80,6 @@ function webpackOptions(
entry: { hello: "./index.js" },
mode: production ? "production" : "development",
plugins: [
new HTMLWebpackPlugin({
inject: "head",
// template: require.resolve("./template.html")
// template: require.resolve(path.resolve(__dirname, "template.html"))
template: path.resolve(__dirname, "template.html")
}),
new CopyPlugin([
{
from: "static/**/*",
@ -168,6 +162,12 @@ function webpackOptions(
yandex: false // Create Yandex browser icon. `boolean` or `{ offset, background, mask, overlayGlow, overlayShadow }`
}
}
}),
new HTMLWebpackPlugin({
inject: "head",
// template: require.resolve("./template.html")
// template: require.resolve(path.resolve(__dirname, "template.html"))
template: path.resolve(__dirname, "template.html")
})
],
output: {