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
0
votes
1 answer

How to structure a Grunt task for develop and release

I cant really seem to figure out how to structure the config for a certain task. Currently I'm trying to do this for cssmin. This config snippet works fine: cssmin: { options: { shorthandCompacting: false, roundingPrecision: -1 …
Vivendi
  • 20,047
  • 25
  • 121
  • 196
0
votes
1 answer

Use clean-css compatibility options in grunt-contrib-cssmin

I ran into an issue with clean-css in IE10. I'm needing to turn off the spaces after closing braces optimization. I'm using the grunt-contrib-cssmin plugin to automate all these optimizations, but I don't see a way to access the compatibility flags…
Benjamin Solum
  • 2,281
  • 18
  • 29
0
votes
0 answers

Grunt css-min paths

I have the following setup in my Grunt file for css cssmin: { options: { rebase: true, }, concat: { files: { 'dist/app.css': [ 'tmp/*.css', …
Ben_hawk
  • 2,476
  • 7
  • 34
  • 59
0
votes
2 answers

Grunt CSS import and paths

I have the following setup in Grunt for the concat and minification of my projects css cssmin: { options: { }, concat: { files: { 'dist/app.css': [ 'tmp/*.css', …
Ben_hawk
  • 2,476
  • 7
  • 34
  • 59
0
votes
1 answer

How can I minify css file containing @import url lines

I am using grunt-contrib-cssmin to minify my css files but onw of my css files is using @import url lines and above mentioned grunt plugin is unable to minify this css file. I have also tried clean-css and cssjoin tools to solve this problem but…
Muhammad Raza
  • 424
  • 5
  • 22
0
votes
1 answer

Grunt and Rails

I'm working on using a Grunt workflow to manage my assets in my Rails app rather than Sprockets. So far, I have my apps JS and CSS both being concatenated and minified into public/assets/javascripts/application.js and…
rctneil
  • 7,016
  • 10
  • 40
  • 83
0
votes
0 answers

Grunt cssmin and import url font from googleapi

There is a problem with cssmin pluggin for grunt that i can't avoid and there isn't to much information at respect. Strange, because i think that it should be a common issue. i have this css file: @import…
xavadu
  • 313
  • 1
  • 3
  • 10
0
votes
1 answer

How to use Grunt while continually compressing css / javascript

I am just getting started with Grunt so please excuse a question which may be dumb: If I am using cssmin or uglify or any other plugin that alters the appearance of my code: How do I make it so that the reference in my main.html file stays…
Startec
  • 12,496
  • 23
  • 93
  • 160
0
votes
2 answers

How to minify and combine within grunt cssmin targets?

I am trying to set two targets (dev and build) within a cssmin task in gruntfile.js. This answer cleared some of my confusion from reading the doc on npm, but I can't get both minify and combine to work. To simplify I'll focus just on the dev task,…
otravers
  • 1,321
  • 8
  • 16
0
votes
3 answers

Could not create a minified css file using grunt-contrib-cssmin

I am using grunt first time, I could able to concat css file using grunt-contrib-concat but I am getting following error while creating minified css file using grunt-conrib-cssmin Error is : >> TypeError: Cannot call method 'clone' of…
Sandip Ghadge
  • 303
  • 4
  • 14
0
votes
1 answer

Handle dependent files with Grunt and rewrite paths

This is my Gruntfile.js (assets is the Bower folder): module.exports = function(grunt) { grunt.initConfig({ distFolder: 'dist', pkg: grunt.file.readJSON('package.json'), concat: { options: { …
user1467267
0
votes
1 answer

Using grunt-usemin with Mean.io (separate public/ and app/ folders)

I created a new project using yeoman angular generator which I then modified to some extend to fit my own needs. However later on I realized I'd like to use mean.io for express and mongodb supports. It took me quite some time to copy necessary parts…
Artsu
  • 23
  • 6
0
votes
1 answer

Grunt cssmin not minifying files prefix with jquery

I have some css files which has 'jquery' as prefix. For example, 'jquery-fancybox.css' I am using grunt cssmin to minify the css, and using a pre-commit git hook, i am able to run the minifying. I did a post-receive git hook on the server as well,…
kkh
  • 4,799
  • 13
  • 45
  • 73
0
votes
2 answers

Grunt cssmin for .min.css files

Am using grunt and cssmin to minify my css. However, in my css assets folder, I have some css that has a .min.css extension. So when I run grunt, only files with .css in my source folder will be minified to be in the build folder. Those files that…
kkh
  • 4,799
  • 13
  • 45
  • 73
0
votes
1 answer

Grunt css min file extension

I am using grunt to minify css. However, when i try to change the parameter in the minify array from ext: '.min.css' to ext: '.css' and src: ['*.css', '!*.min.css'], I am unable to minify the css. Does the '.min' matter? My gruntfile is as…
kkh
  • 4,799
  • 13
  • 45
  • 73