Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 01108e5

Browse files
author
Glen Pike
authored
Merge pull request #341 from CoderDojo/fix-dev-build
Fix dev build for failing file
2 parents bebab65 + f055930 commit 01108e5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/webpack.dev.conf.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ module.exports = merge(baseWebpackConfig, {
4545
template: 'index.ejs',
4646
inject: true,
4747
}),
48+
// generate dist opengraph.hbs with correct asset hash for caching.
49+
// Used when requesting pages which should have OpenGraph meta tags on request
50+
new HtmlWebpackPlugin({
51+
filename: 'opengraph.hbs',
52+
template: 'index.ejs',
53+
openGraph: true,
54+
inject: true,
55+
}),
4856
new FriendlyErrorsPlugin(),
4957
],
5058
});

0 commit comments

Comments
 (0)