build: Use ES module system
- Update package.json with type - Change eleventy config to use import and export - Add comments for jshint and inspection
This commit is contained in:
parent
1db7faaf18
commit
43de7d86fa
2 changed files with 52 additions and 48 deletions
11
.eleventy.js
11
.eleventy.js
|
|
@ -1,7 +1,10 @@
|
|||
const {EleventyHtmlBasePlugin} = require("@11ty/eleventy");
|
||||
/* jshint strict: false */
|
||||
|
||||
module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
||||
import {HtmlBasePlugin} from "@11ty/eleventy";
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
export default async function (eleventyConfig) {
|
||||
eleventyConfig.addPlugin(HtmlBasePlugin);
|
||||
|
||||
eleventyConfig.setLiquidOptions({
|
||||
// greedy: false,
|
||||
|
|
@ -82,4 +85,4 @@ module.exports = function (eleventyConfig) {
|
|||
templateFormats: ['html', 'liquid', 'njk', 'md']
|
||||
// pathPrefix: './demo/'
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue