Skip to content

Instantly share code, notes, and snippets.

View bolorundurovj's full-sized avatar
🎯
Focusing

Bolorunduro Valiant-Joshua bolorundurovj

🎯
Focusing
View GitHub Profile
@spasma
spasma / angular-css-to-scss.sh
Last active July 2, 2024 01:54
Migrate Angular project from CSS to SCSS (Sass) [Also for Angular Material Projects]
#### Please Backup your project first!!!!!!!!
# run this in your project root folder
# rename all your src files
cd src
find . -name "*.css" -exec bash -c 'mv "$1" "${1%.css}".scss' - '{}' \;
cd ..
# change angular cli config in angular.json
sed -i -e 's/styles.css/styles.scss/g' angular.json
@MrZoidberg
MrZoidberg / web.config
Created January 8, 2018 13:37
web.config for Angular website
<?xml version="1.0" encoding="utf-8"?>
<!--
Credit to : H5BP <https://h5bp.github.io>
https://github.com/h5bp/server-configs-iis/blob/master/server%20config/Web.config
-->
<configuration>
<system.webServer>
<!-- GZip static file content. Overrides the server default which only compresses static files over 2700 bytes -->
<httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024">
<scheme dll="%Windir%\system32\inetsrv\gzip.dll" name="gzip" />