hugo.soucy.cc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator (Ferron).
Log | Files | Refs

commit 023df94e06b02ba68e67af1d2512d3a2a71edbeb
parent eddce189f094a0a2ec38402bb70a34b331c9602d
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Sun, 20 Oct 2019 16:14:53 -0400

Modify SASS plugin

Diffstat:
Mplugins/sass/init.lua | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/plugins/sass/init.lua b/plugins/sass/init.lua @@ -10,8 +10,10 @@ function sass.init(sitedata) local src = sitedata.static_src .. '/css/styles.scss' local dest = sitedata.static .. '/css/styles.min.css' - return os.execute('sassc ' .. src .. ' ' .. dest), - print('SCSS Preprocessed then CSS Updated!') + os.execute('sassc ' .. src .. ' ' .. dest) + os.rename(dest, sitedata.html .. '/css/styles.min.css') + + return print('SCSS Preprocessed then CSS Updated!') end return setmetatable(sass, sassmeta)