0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/helpers
Hannah Wolfe a413d70313 Asset amends (#8294)
refs #8221

🔥 Remove ghost=true concept from asset url helper

 💯 Introduce CSS minification with cssnano
- add new grunt-cssnano dependency
- wire up grunt task to minify public/ghost.css

🎨 Rename minification config & hash params
- Change minifyInProduction -> hasMinFile
  - this means this asset should have a .min file available
- Change minifyAssets -> useMinFiles
  - this means that in this env we want to serve .min files if available

🎨 Update public/ghost.css to serve .min for prod
- add the new `hasMinFile` property

🎨 Move minified asset handling to asset_url util
- this logic should be in the util, not the asset helper
- updated tests

📖 Error handler always needs asset helper
- this removes the TODO and adds a more sensible comment
- we also need to update our theme documentation around error templates

🔥 Don't use asset helper in ghost head
- use getAssetUrl util instead!
- removed TODO

📖 Update proxy docs
🎨 Simplify asset helper & add tests
- this refactor is a step prior to moving this from metadata to being a url util
- needed to skip some new tests

🐛 Add missing handler for css file
2017-04-10 11:30:21 +02:00
..
tpl New buttons 🎨 (#8007) 2017-02-16 19:52:32 +00:00
asset.js Asset amends (#8294) 2017-04-10 11:30:21 +02:00
author.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
body_class.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
content.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
date.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
encode.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
excerpt.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
facebook_url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
foreach.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
get.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
ghost_foot.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
ghost_head.js Asset amends (#8294) 2017-04-10 11:30:21 +02:00
has.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
image.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
index.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
is.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
meta_description.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
meta_title.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
navigation.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
page_url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
pagination.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
plural.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
post_class.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
prev_next.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
proxy.js Asset amends (#8294) 2017-04-10 11:30:21 +02:00
register.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
tags.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
template.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
title.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
twitter_url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00