change hbs & glob path

This commit is contained in:
Primakov Alexandr Alexandrovich 2020-03-23 22:06:53 +03:00
parent edc6a9f401
commit e661a0f9a3
5 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
const path = require('path');
const hbs = require(path.resolve('node_modules', 'hbs'));
const hbs = require('hbs');
const registerPartialsWithExtensions = require('./utils/registerPartialsWithExtensions');

View File

@ -3,6 +3,7 @@
<head>
{{>"partials/header.hbs"}}
<title>{{ pageTitle }}</title>
</head>
<body>

View File

@ -3,6 +3,7 @@
<head>
{{>"partials/header.hbs"}}
<title>{{ pageTitle }}</title>
</head>
<body>

View File

@ -3,4 +3,3 @@
rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ pageTitle }}</title>

View File

@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');
const glob = require(path.resolve('node_modules', 'glob'));
const glob = require('glob');
module.exports = (hbs, rootDir) => {
glob