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/'
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
"type": "git",
|
||||
"url": "https://quelltext.interaktionsweise.de/interaktionsweise/hippie.git"
|
||||
},
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"hello": "echo -n \"This is \" && node -p \"process.env.npm_package_name\" | tr '[:lower:]' '[:upper:]'",
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue