Giter Club home page Giter Club logo

Comments (4)

tonyganch avatar tonyganch commented on July 18, 2024

You can use custom configuration file: name it .csscomb.json and put it into project's root directory.
See documentation on how to create config files and what options you can set.

from grunt-csscomb.

arthurgouveia avatar arthurgouveia commented on July 18, 2024

So, if I have this on my .csscomb.json

{
  'block-indent': '',
  'colon-space': ['', ''],
  'eof-newline': false,
  'rule-indent': '',
  'stick-brace': ''
}

and my Gruntfile.js is like this:

    csscomb: {
      dev: {
        files: {
          'src/<%= dirs.css %>/main.css': ['src/<%= dirs.css %>/main.css'],
          'src/<%= dirs.css %>/main-ie.css': ['src/<%= dirs.css %>/main-ie.css']
        }
      },
      dist: {
        files: {
          'dist/<%= dirs.css %>/main.css': ['dist/<%= dirs.css %>/main.css'],
          'dist/<%= dirs.css %>/main-ie.css': ['dist/<%= dirs.css %>/main-ie.css']
        }
      }
    }

and my project structure is like this

How come my main.css and main-ie.css are being expanded with indentation and line-breaks?
Do you know what I'm doing wrong?

I'm trying to make the CSSComb work in dev on standard mode but when I run grunt build, which is the command to generate a minified and concatenated version of everything, have it comb the CSS without losing the minification for this project

from grunt-csscomb.

tonyganch avatar tonyganch commented on July 18, 2024

What version of grunt-csscomb do you use?
I see ~1.1.0 in your package.json, but the current version is 2.0.1 already.

from grunt-csscomb.

arthurgouveia avatar arthurgouveia commented on July 18, 2024

Damn! Sorry. Works like a charm. Just updated my project. Thanks a lot.

from grunt-csscomb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.