gruntjs/grunt-contrib-cssmin

Should have option to process imports

sagarkbhatt opened this issue · 2 comments

In some scenario I want to ignore css import.

  • @import "css/example.css";
  • @import url(http://fonts.googleapis.com/css?family=Open+Sans);

I'm facing problems with @import at this moment, even using

cssmin : {
      options : {
        'processImport': false
      },
      root: 'path/to/root/css/'
},

anyone has any suggestion on how t o get it working?

Kout commented

@h3nr1ke It might be related to changes in the Clean CSS plugin, see version 4.0 breaking changes:

processImport and processImportFrom are merged into inline option which defaults to local. Remote @import rules are NOT inlined by default anymore;