Questions tagged [grunt-contrib-cssmin]

A grunt plug-in for compressing and combining CSS files

A grunt plug-in for compressing and combining CSS files: https://github.com/gruntjs/grunt-contrib-cssmin

76 questions
1
vote
2 answers

grunt-contrib-cssmin: css source map appears empty in dev tools

I am using grunt with cssmin to minify and concatenate css files. Css files are well concatenated and minified but when I try to watch the non minified files in chrome dev tools under 'Sources' tab, files appears empty. Here is my cssmin task:…
ben.IT
  • 1,490
  • 2
  • 18
  • 37
1
vote
0 answers

grunt-cssmin banner not working

Im using gruntjs/grunt-contrib-cssmin to minify & concat my css files, I wanted to add simple banner on my output css file, but its not working cssmin : { distribute : { options: { banner: 'MY BANNER ' }, …
Wimal Weerawansa
  • 309
  • 2
  • 15
  • 33
1
vote
0 answers

grunt-contrib-css is breaking my CSS b.c. it removes multiple entries ...?

... should I file this as a bug. w/out using it my code works. When I use it I loose some of my stylings. After looking into it further, it is deleting multiple definitions of classes. Also, someone with a similar problem here - Avoid Grunt cssmin…
cade galt
  • 3,843
  • 8
  • 32
  • 48
1
vote
2 answers

How can I control grunt-contrib-cssmin sourcemap URLs?

I am trying to configure my Gruntfile to auto-generate sourcemaps for my CSS files. I have several unminified CSS files which I combine into one minified file, but I would like to reference the unminified files for debugging in dist/src/_assets/css/…
Nick Tiberi
  • 1,132
  • 12
  • 20
1
vote
1 answer

Getting interesting error when compressing the JS files - trying to read a folder as JS file

I have a Grunt task that loops through directories and sub directories and compresses the JS and CSS files. I get the following error which means that it accidentally thought less.js folder is a JavaScript file. I am wondering is it possible to…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
1
vote
1 answer

Grunt grunt-contrib-cssmin runs unending doesn't combine files

I am having a strange issue with grunt-contrib-cssmin. It never stops or gives errors. I am using C:\projects\doeclf>grunt --version && node --version && npm --version grunt-cli v0.1.13 grunt v0.4.5 v0.12.4 2.10.1 My grunt.js has following in it …
1
vote
1 answer

cssmin grunt plugin generates incorrect source urls in sourcemap

cssmin grunt plugin grunt-contrib-cssmin trims leading slash in css sourcemap sources url, thus making css mapping incorrect. Meanwhile after editing sourcemap file by hand (adding leading slash to each source url) everything seems to be mapped…
1
vote
1 answer

usemin, rev, less, source maps and IE8 selector count support

This is a source of concern and hard to solve whilst retaining the requirements. Using usemin via grunt tasks to optimise a build of a complex and rather large application. The problem right now is that IE8 and IE9 are dropping CSS rule declarations…
1
vote
0 answers

Absolute URLs with Grunt Usemin / CSSmin while still finding the CSS

Because my site is based on folder structure, I have to add as many ../ as their are levels in the hierarchy or on deeper 'pages' the CSS doesn't load. Is there a way to get Grunt Usemin / CSSmin to let me use an absolute url?