Skip to content

Commit

Permalink
Fix PostCSS warning message caused by wrong boolean check
Browse files Browse the repository at this point in the history
  • Loading branch information
astronomersiva committed Jan 19, 2019
1 parent 680d60c commit f4e5f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/copyMajorStaticAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = async function(site, options = {}) {
const isDevelopment = site.isDevelopment();

let postCSSPlugins = site.getConfig().postCSSPlugins || [];
let isPostCssNeeded = isDevelopment || postCSSPlugins;
let isPostCssNeeded = !isDevelopment || postCSSPlugins.length;
let postCSSPluginsForProd = [];

// just requiring these adds about 2-3 seconds to startup
Expand Down

0 comments on commit f4e5f9c

Please sign in to comment.