🐛 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 bace776989
commit 9e614978f0
1 changed files with 11 additions and 1 deletions

View File

@ -83,7 +83,17 @@ function postcssPlugins() {
if (isProduction) {
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
}
}
});
}