Added possibility to start hot reloading local server

This commit is contained in:
sthag 2023-10-25 22:22:19 +02:00
parent 7f6734a6e3
commit 959f84c655
2 changed files with 4 additions and 1 deletions

View file

@ -24,6 +24,8 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("vendor");
eleventyConfig.addWatchTarget("./source/style/");
return {
dir: {
input: "source/screens",

View file

@ -26,7 +26,8 @@
"style:compile": "sass source/style:build/css --load-path=vendor",
"style:watch": "sass --watch source/style:build/css --load-path=vendor",
"build:new": "npm run clean:build && npx @11ty/eleventy && npm run style:compile",
"build": "npx @11ty/eleventy && npm run style:compile"
"build": "npx @11ty/eleventy && npm run style:compile",
"serve": "npm run style:watch & npx @11ty/eleventy --serve"
},
"private": true,
"devDependencies": {