fix template import issue

This commit is contained in:
slorber 2020-05-25 20:06:52 +02:00
parent e93b98a242
commit 0c330df5cc
3 changed files with 9 additions and 4 deletions

View file

@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
const eta = require('eta');
const redirectPageTemplate = require('./template/redirectPage.html.template');
import * as eta from 'eta';
import redirectPageTemplate from './templates/redirectPage.template.html';
type CreateRedirectPageOptions = {
toUrl: string;

View file

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
module.exports = `
export default `
<!DOCTYPE html>
<html>
<head>

View file

@ -21,7 +21,12 @@ module.exports = {
},
themes: ['@docusaurus/theme-live-codeblock'],
plugins: [
['@docusaurus/plugin-client-redirects', {}],
[
'@docusaurus/plugin-client-redirects',
{
fromExtensions: ['html'],
},
],
[
'@docusaurus/plugin-ideal-image',
{