grunt-contrib-cssmin icon indicating copy to clipboard operation
grunt-contrib-cssmin copied to clipboard

Should have option to process imports

Open sagarkbhatt opened this issue 7 years ago • 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);

sagarkbhatt avatar Jan 17 '18 12:01 sagarkbhatt

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?

h3nr1ke avatar Feb 20 '18 15:02 h3nr1ke

@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;

Kout avatar Nov 21 '18 16:11 Kout