bigcartel / dugway

Easily build and test Big Cartel themes.
https://developers.bigcartel.com/api/themes
MIT License
149 stars 22 forks source link

dugway build doesn't minify less -> css #113

Closed pjv closed 10 years ago

pjv commented 10 years ago

i'm using less for my css. when i ran the dugway build command to generate the theme.css, the theme.css that was included in the build zip was un-minified css.

is that intentional? i'm thinking it would be better to minify the generated css in the build.

outerim commented 10 years ago

It is intentional. The reason for this is that when loaded in Big Cartel the CSS is editable by the store owner. Comments and structure etc are all preserved so that making tweaks is more straightforward. When a theme is applied to a store it's liquid (including any changes made by the store) are parsed and rendered and the resulting content is minified and uploaded to our CDN. Ultimately the end product delivered to people browsing the stores will be minified and gzipped as necessary but the actual dugway build output is not.