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:
parent
1d15386960
commit
26ae3fa69d
1 changed files with 11 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue