Skip to content

Commit

Permalink
only transform safe cssnano minifiers (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper De Moor authored and devongovett committed Feb 28, 2018
1 parent 46c5da2 commit 55814c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/transforms/posthtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ async function getConfig(asset) {
if (asset.options.minify) {
const htmlNanoConfig = asset.package.htmlnano ||
(await asset.getConfig(['.htmlnanorc', '.htmlnanorc.js'])) || {
collapseWhitespace: 'conservative'
collapseWhitespace: 'conservative',
minifyCss: {
safe: true
}
};

config.plugins.push(htmlnano(htmlNanoConfig));
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3248,7 +3248,7 @@ lcid@^1.0.0:
dependencies:
invert-kv "^1.0.0"

less@^3.0.0:
less@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/less/-/less-3.0.1.tgz#ba2fea24a5632ccb8c84230d6043c0bf91855e37"
optionalDependencies:
Expand Down

0 comments on commit 55814c0

Please sign in to comment.