Giter Club home page Giter Club logo

Comments (9)

kahlil avatar kahlil commented on August 15, 2024

This should be done via #17

from grunt-compass.

peter-m avatar peter-m commented on August 15, 2024

How should I use it then?

My src/css/app.scss @imports all other scripts so I tried the following:

    compass: {
        dev: {
            src: 'src/css/app',
            dest: 'tmp',
            linecomments: true,
            forcecompile: true,
            //debugsass: true,
            images: 'img',
            relativeassets: true
        }
    }

which gives me

Running "compass:dev" (compass) task
>> No file matched with: src/css/app
<WARN> Task "compass:dev" failed. Use --force to continue. </WARN>

so I tried changing the src parameter to 'src/css/app.scss' which gave me

Running "compass:dev" (compass) task
`compass compile src/css/app.scss --css-dir="tmp" --images-dir="img" --relative-assets --force` was initiated.

COMPASS output:
>> Error: Command failed: You must compile individual stylesheets from the project directory.
<WARN> Task "compass:dev" failed. Use --force to continue. </WARN>

Don't quite get how this should work - any help appreciated!

from grunt-compass.

kahlil avatar kahlil commented on August 15, 2024

I'll check it out tonight.

from grunt-compass.

peter-m avatar peter-m commented on August 15, 2024

somebody seems to have a similar issue over there - not sure whether it's compass' fault... (I've got version 0.12.2)

from grunt-compass.

kahlil avatar kahlil commented on August 15, 2024

I just did a test with the newest versions of grunt, grunt-compass, sass and compass installed and it works perfectly...

from grunt-compass.

peter-m avatar peter-m commented on August 15, 2024

Running the following on Ubuntu 12.10 with grunt v0.3.17, grunt-compass v0.3.2, sass 3.3.0, compass v0.13

compass: {
    dev: {
        src: 'src/css/app.scss',
        dest: 'tmp',
        linecomments: true,
        forcecompile: true,
        images: 'img',
        relativeassets: true
    }
}

Any idea why this doesn't work? (The file exists and it's valid)

Couldn't find anything pertaining this error Error: Command failed: You must compile individual stylesheets from the project directory.

from grunt-compass.

Pixy avatar Pixy commented on August 15, 2024

Hello ! Did you found the answer ? I have the same problem :(

from grunt-compass.

kahlil avatar kahlil commented on August 15, 2024

Hi @Pixy!

I am sorry grunt-compass is deprecated and not under development anymore. Please use https://github.com/gruntjs/grunt-contrib-compass with the newest version of Grunt!

Thank you!

from grunt-compass.

Pixy avatar Pixy commented on August 15, 2024

Yes thank you, my problem was that I specified paths thinking that the root was the sassDir
I wrote the complete path and it works now :)

from grunt-compass.

Related Issues (15)

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.