add last-comments widget to webpack build script

This commit is contained in:
igoradamenko
2018-03-11 20:38:52 +03:00
parent f2e336bbc7
commit 66abaaf5cf
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ _instructions for google oauth2 setup borrowed from [oauth2_proxy](https://githu
1. Under **"Facebook login"** / **"Settings"** fill "Valid OAuth redirect URIs" with your callback url constructed as domain + `/auth/facebook/callback`
1. Select **"App Review"** and turn public flag on. This step may ask you to provide a link to your privacy policy.
#### Initial import from disqus
#### Initial import from Disqus
1. Disqus provides an export of all comments on your site in a g-zipped file. This is found in your Moderation panel at Disqus Admin > Setup > Export. The export will be sent into a queue and then emailed to the address associated with your account once it's ready.
2. Move this file to your remark42 host and unzip.
+7
View File
@@ -41,6 +41,7 @@ module.exports = {
remark: './app/remark',
embed: './app/embed',
counter: './app/counter',
'last-comments': './app/last-comments',
},
output: {
path: publicFolder,
@@ -110,6 +111,12 @@ module.exports = {
filename: 'counter.html',
inject: false,
}),
// TODO: we should add it only on demo serv
new Html({
template: path.resolve(__dirname, 'last-comments.ejs'),
filename: 'last-comments.html',
inject: false,
}),
...(env === 'production' ? [] : [new Html({
template: path.resolve(__dirname, 'dev.ejs'),
filename: 'dev.html',