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. * LICENSE file in the root directory of this source tree.
*/ */
const eta = require('eta'); import * as eta from 'eta';
const redirectPageTemplate = require('./template/redirectPage.html.template'); import redirectPageTemplate from './templates/redirectPage.template.html';
type CreateRedirectPageOptions = { type CreateRedirectPageOptions = {
toUrl: string; toUrl: string;

View file

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

View file

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