diff --git a/frontend/gulpfile.js b/frontend/gulpfile.js index bc8bf37d47..9b09067aed 100644 --- a/frontend/gulpfile.js +++ b/frontend/gulpfile.js @@ -44,6 +44,14 @@ function scssPipeline(options) { }); }; + const touch = (_path) => { + return new Promise((resolve, reject) => { + return fs.utimes(file.path, new Date(), new Date(), () => { + resolve(_path); + }); + }) + }; + const render = (input) => { return new Promise((resolve, reject) => { sass.render({file: input}, async function(err, result) { @@ -69,7 +77,11 @@ function scssPipeline(options) { return mkdirp(path.dirname(output)) .then(() => render(input)) .then((res) => postprocess(res, input, output)) - .then((res) => write(output, res)) + .then(async (res) => { + await write(output, res); + await touch(output); + return res; + }) .catch((err) => null) .then(() => { next(); diff --git a/frontend/shadow-cljs.edn b/frontend/shadow-cljs.edn index 0f3c921432..6da3a14bf7 100644 --- a/frontend/shadow-cljs.edn +++ b/frontend/shadow-cljs.edn @@ -7,7 +7,8 @@ {:target :browser :output-dir "resources/public/js/" :asset-path "/js" - :devtools {:browser-inject :main} + :devtools {:browser-inject :main + :watch-dir "resources/public"} :build-options {:manifest-name "manifest.json"} :modules