shkuznetsov / gulp-minify-inline

gulp plugin that minifies inline JS and CSS
MIT License
28 stars 5 forks source link

Minify ONLY the inline css #11

Closed peterbe closed 8 years ago

peterbe commented 8 years ago

Great gulp package! But I only want to minify the <style> tags. Not the <script> tags. I can accomplish this by doing:

  .pipe(minifyInline({
    jsSelector: 'pleasedontminifyscripts'
  }))
shkuznetsov commented 8 years ago

Yep:

  .pipe(minifyInline({
    js: false
  }))
peterbe commented 8 years ago

Any chance of a new release with this new feature in it?

shkuznetsov commented 8 years ago

Sorry, didn't make this clear: it has been there since very beginning, it is also mentioned in the spec:

There is also a test in the suite, which covers that case, so I'm fairly certain it works.

peterbe commented 8 years ago

Oops. Then I totally missed that. Thanks for your help.