Remove sass:compile and add prestart npm scripts

-I figure this should be changed now while it's fresh on my mind and may come in handy down the road to have the ability to auto-run 'npm update' when new packages are added and/or to more easily do any other future pre-run processing
This commit is contained in:
joeuhren
2021-03-28 21:26:23 -06:00
parent 40b6a641f5
commit 5262923fb0
3 changed files with 16 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
## Check if new module directory exists
#if [ ! -d ./node_modules/change_to_module_dir_name ]; then
# # Install updated packages
# npm update
#fi
# Ensure that selected theme is properly installed
sh ./scripts/sass_theme_reader.sh
# Run sass module to generate minified css from scss file
./node_modules/.bin/sass --no-source-map --style=compressed ./public/css/style.scss ./public/css/style.min.css