0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 fix sticky save notifications (#762)

closes TryGhost/Ghost#8610

There's an issue in CSSnano, which we're using in production mode to minify our CSS that caused animation frames to not work properly anymore.
See: https://github.com/ben-eb/gulp-cssnano/issues/33#issuecomment-210518957

Adding the recommended options fixed this issue.
This commit is contained in:
Aileen Nowak 2017-07-04 17:20:25 +07:00 committed by Kevin Ansfield
parent 1d15386960
commit 26ae3fa69d

View file

@ -83,7 +83,17 @@ function postcssPlugins() {
if (isProduction) { if (isProduction) {
plugins.push({ plugins.push({
module: require('cssnano') module: require('cssnano'),
// cssnano minifies animations sometimes wrong, so they don't work anymore.
// See: https://github.com/ben-eb/gulp-cssnano/issues/33#issuecomment-210518957
options: {
reduceIdents: {
keyframes: false
},
discardUnused: {
keyframes: false
}
}
}); });
} }