Skip to content

Commit

Permalink
fix error with yaml.safeLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
luisstd committed Jan 11, 2022
1 parent 5c58f6f commit ee4824c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ module.exports = function (eleventyConfig) {

// To Support .yaml Extension in _data
// You may remove this if you can use JSON
eleventyConfig.addDataExtension("yaml", (contents) =>
yaml.safeLoad(contents)
);
eleventyConfig.addDataExtension("yaml", (contents) => yaml.load(contents));

// Copy Static Files to /_Site
eleventyConfig.addPassthroughCopy({
Expand All @@ -47,7 +45,7 @@ module.exports = function (eleventyConfig) {
let minified = htmlmin.minify(content, {
useShortDoctype: true,
removeComments: true,
collapseWhitespace: true
collapseWhitespace: true,
});
return minified;
}
Expand Down

0 comments on commit ee4824c

Please sign in to comment.