Added possibility to start hot reloading local server
This commit is contained in:
parent
7f6734a6e3
commit
959f84c655
|
@ -24,6 +24,8 @@ module.exports = function (eleventyConfig) {
|
|||
|
||||
eleventyConfig.addPassthroughCopy("vendor");
|
||||
|
||||
eleventyConfig.addWatchTarget("./source/style/");
|
||||
|
||||
return {
|
||||
dir: {
|
||||
input: "source/screens",
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue