javascript - Grunt Combine Media Queries - Cannot call method "join" of undefined -
i found grunt combine media queries plugin morning , have been looking @ getting running on build we've got stupid amount of media query declarations in our css (204 - we're using sass) i'd reduce.
cmq: { options: { log: true } , your_target: { files: { '<%= meta.csspath %>temp': ['<%= meta.csspath %>hayes.css'] } } }
csspath dir css in.
when run grunt cmq following error:
processed media queries: @media screen , (-webkit-min-device-pixel-ratio: 0) @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) @media screen , (min-device-pixel-ratio: 2) @media screen , (-webkit-min-device-pixel-ratio: 1.5), screen , (-moz-min-device-pixel-ratio: 1.5), screen , (min-resolution: 240dpi) @media (max-width: 767px) , (min-width: 768px) @media (min-width: 768px) , (max-width: 979px) @media (min-width: 768px) @media (min-width: 768px) , (max-width: 767px) @media (min-width: 768px) , (max-width: 767px) , (max-width: 767px) @media (min-width: 768px) , (min-width: 1200px) @media (min-width: 979px) @media (min-width: 980px) , (max-width: 1200px) @media (min-width: 1200px) @media (max-width: 980px) warning: cannot call method 'join' of undefined use --force continue. aborted due warnings.
has had similar or know what's causing this? i've got grunt 0.4.1 running.
i've had , appears grunt task fails if there comments within media queries.
i've sent pull request fix issue: https://github.com/buildingblocks/grunt-combine-media-queries/pull/5
if desperate, welcome use fork: https://github.com/badsyntax/grunt-combine-media-queries
Comments
Post a Comment