Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8662481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:44:41+00:00 2026-06-12T16:44:41+00:00

I am trying to minify an external css script using gruntjs and grunt-css plugin

  • 0

I am trying to minify an external css script using gruntjs and grunt-css plugin through the terminal.

The code I am running:

grunt --cssmin ../style.css > ../style1.css

Am I doing it right? Am I misunderstanding what Grunt is used for?

Thanks!

Here is what my generated style1.css looks like… It’s not minified.. I’m not sure what it is but it is doing something.

[31m<[39m[33mWARN[39m[31m>[39m [33mTask "cssmin" not found. Use --force to continue.[39m [31m</[39m[33mWARN[39m[31m>[39m

[31mAborted due to warnings.[39m

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:44:42+00:00Added an answer on June 12, 2026 at 4:44 pm

    That is not exactly how Grunt works. Grunt uses a grunt file (grunt.js in v0.3 and Gruntfile.js in v0.4) to configure build instructions. First create a grunt file, grunt init:gruntfile and specify your css min targets there. I recommend reading the getting started guide in the Grunt docs:
    https://github.com/gruntjs/grunt/wiki/Getting-started

    You can use Sqwish (what grunt-css uses) directly to do the above. Install sqwish globally with npm install -g sqwish then type: sqwish -o ../style1.css ../style.css. Read more about Sqwish here: https://github.com/ded/sqwish

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to minify multiple CSS files using preg_replace() . Actually, I'm only trying
I am trying to minify some files in a roll-up script using jsmin. This
I'm trying to use Reducisaurus Web Service to minify CSS and Javascript but I've
I have production code that I am now trying to minify with the Closure
I'm trying to minify my AngularJS JavaScript (using SquishIt). My module has an injected
I'm trying to use bundling to combine & minify some CSS files. In my
Trying to deploy a Django 1.4 project using mod_wsgi and virtualenv, i'm running into
I am trying to minify a third-party JavaScript library using Google Closure Compiler, but
I'm using yuicompressor to minify and obfuscate some javscript files. I'm trying to dynamically
I am trying to figure the best way to manage my javascript code for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.