Skip to content

joshrps/asset-cruncher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asset Cruncher

Stupid-simple minification when you don't want to set up an entire project.

tl;dr:

Dump js and (s)css into dist/<directory name>. Files output in source/<directory name>

npm i
gulp crunch --dir <directory name>

Liquid support:

Using Shopify's liquid in scss can cause issues, so write it as such:

background: url('{{ "header.jpg" | asset_url }}') top center no-repeat;

becomes

background: url('#{'{{ "header.jpg" | asset_url }}'}') top center no-repeat;

and then use the --liquid flag in the command:

gulp crunch --dir <directory name> --liquid

and the output files will be named *.liquid.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published