Skip to content

Commit 747809b

Browse files
authored
Change from backticks to simple quotes to support older versions of node (#16)
1 parent 03327dd commit 747809b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/files/ng-add-pug-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
const fs = require('fs');
66
const commonCliConfig = '__COMMON_CLI_CONFIG_PATH__';
7-
const pugRules = `__PUG_RULES__`;
7+
const pugRules = '__PUG_RULES__';
88

99
fs.readFile(commonCliConfig, (err, data) => {
1010
if (err) throw err;

src/schematics/ng-add/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ function getPugLoaderRules(): string {
141141
test: /\\.(pug|jade)$/,
142142
exclude: ${partialRegex},
143143
use: [
144-
{ loader: 'apply-loader' },
145-
{ loader: 'pug-loader' }
144+
{ loader: "apply-loader" },
145+
{ loader: "pug-loader" }
146146
]
147147
},
148148
{
149149
test: ${partialRegex},
150-
loader: 'pug-loader'
150+
loader: "pug-loader"
151151
},`.replace(/\s+/gm, ' ');
152152
}

0 commit comments

Comments
 (0)