0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server/apps
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
..
amp Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
default-cards 📦 Card-Rename (#8218) 2017-03-24 10:03:33 +00:00
private-blogging Asset amends (#8294) 2017-04-10 11:30:21 +02:00
subscribers Asset amends (#8294) 2017-04-10 11:30:21 +02:00
dependencies.js
index.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
loader.js 🎨 🔦 refactor content paths (images, apps, themes, storage, scheduling) 2016-09-20 15:59:34 +01:00
permissions.js 🎨 Collect & simplify package utils (#8080) 2017-03-01 14:09:31 +01:00
proxy.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
sandbox.js 🔥 remove postgres support 2016-09-20 15:59:34 +01:00