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

grunt cssmin @import parameters in url

I am looking for a way to put a version parameter in the url tail of some @import statements in sass file: @import url('custom-style.css?v='+random(99999)); @import url('custom-style-mobile.css?v='+random(99999)); Grunt sass doesn't seems to reject…
ale
  • 10,012
  • 5
  • 40
  • 49
0
votes
1 answer

Grunt cssmin deletes every first css rule in every file

Builds without misstakes, but every first css rule block are deleted. What can cause the problem? Grunt configurations: ... useminPrepare: { html: 'app/index.html', options: { dest: 'docs' } }, …
0
votes
0 answers

Change "clean css" options in grunt min css

Is there some kind of special syntax I need to use to override Clean CSS defaults when using Grunt CSS min? Looking at the docs I can successfully get the "roundingPrecision" example working but trying to override other Clean CSS rules does not work…
SparrwHawk
  • 13,581
  • 22
  • 61
  • 91
0
votes
1 answer

Make css map points to sass partial using grunt

I'm using grunt-contrib-css to process my sass files, this is the workflow im following: partial.sass contains all the styles. home.sass import partial.sass. home.css gets created from home.sass. home.min.css is the minified version of…
miguelopezv
  • 790
  • 2
  • 8
  • 28
0
votes
0 answers

Minify CSS included in html header with grunt task

I have html file width css file included in head section that has been minified with cssmin, additionally the html has been minified with htmlmin grunt task succesfully, but there is a little problem with html minified, the css and javascript…
xzegga
  • 3,051
  • 3
  • 25
  • 45
0
votes
1 answer

SailsJs add custom task in default.js

I'm trying to add a custom task in a salsjs application. This is what I've done so far: Added a new file in the task/config directory named cssminTemplates.js Modify the default.js file in the task/registerd directory. My cssminTemplates.js is…
Ilproff_77
  • 207
  • 1
  • 3
  • 17
0
votes
2 answers

Grunt: cssmin not working

I am trying to minify CSS using Grunt cssmin plugin. Below is my code: // Minify CSS cssmin: { build: { options: { banner: '/* Minified CSS */' }, files: { 'htt/css/style.min.css' :…
0
votes
1 answer

Gruntjs - where does ':generated' come from?

I just happen to come across this and got stuck to figure this out. I have this grunt task, called build, as follow, grunt.registerTask('build', [ 'clean:dist', 'wiredep', 'useminPrepare', 'concurrent:dist', 'postcss', …
choz
  • 17,242
  • 4
  • 53
  • 73
0
votes
1 answer

grunt-contrib-cssmin No files created

I'm unable to properly configure cssmin. In this specific case I'm trying to confiure cssmin in order to create 2 different css minified file starting from two different css file. Using grunt --verbose on terminal I get: Running "cssmin:foo"…
assistbss
  • 527
  • 7
  • 25
0
votes
1 answer

cssmin and grunt - file append issue

I've just started using grunt and cssmin for automating the CSS minification process. This works fine at the very first time, however later on the file content gets appended to the minified file instead of overwriting it, and its duplicated, file…
Vaishak
  • 462
  • 2
  • 6
  • 17
0
votes
1 answer

grunt-contrib-cssmin takes 10 minutes to complete

I currently have an issue that my grunt-contrib-cssmin task takes nearly 10 minutes to complete. This problem occured after I updated grunt and all plugins to current versions. I did not update them for nearly a year before. Before the update, the…
OliverM
  • 510
  • 6
  • 13
0
votes
1 answer

Error running grunt plugin grunt-contrib-cssmin

Grunt newbie here. I'm receiving the following error when I run the grunt task grunt-contrib-cssmin. The modernizr task seems to be working: Running "cssmin:target" (cssmin) task Warning: pattern.indexOf is not a function Use --force to…
brandozz
  • 1,059
  • 6
  • 20
  • 38
0
votes
1 answer

grunt build crashing on cssmin with failed scss import

I have a project that uses the grunt yeoman angular generator and sass. In my scss file, I have the following lines: // bower:scss @import "bootstrap-sass-official/assets/stylesheets/_bootstrap.scss"; // endbower Which were automatically generated…
0
votes
1 answer

grunt-contrib-cssmin changes px to pc after minifying

I'm building an Angularjs app using yeoman angular generator, with libsass instead of compass, and it works great on local server. But after build, some of my css properties changes from px to pc, and that's causes errors and styling…
0
votes
1 answer

Grunt : Usemin prepare, options for cssmin

I'm using usemin in my Grunt file. I'd like to use purifycss. BUT, i get this error when running grunt : Warning: Please check the validity of the CSS block starting from the line #1 Use --force to continue. I think it's because Font Awesome is the…
maxime1992
  • 22,502
  • 10
  • 80
  • 121