🐛 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:
parent
bace776989
commit
9e614978f0
|
@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue