Code Monkey home page Code Monkey logo

Comments (11)

hudochenkov avatar hudochenkov commented on June 15, 2024

Have you tried to use it with https://github.com/aleshaoleg/postcss-sass parser?

If postcss-sorting works with this parser, then great! Otherwise fill free to contribute these support.

from postcss-sorting.

gespinha avatar gespinha commented on June 15, 2024

I've tried it now but its throwing me some errors, not sure if I'm using it right.

    postcss: {
      options: {
        processors: [
          require("postcss-sass")(sass, { syntax: postcssSass })
        ]
      }
    }

from postcss-sorting.

hudochenkov avatar hudochenkov commented on June 15, 2024

I'm guessing you're using grunt-postcss. Correct config:

options: {
	processors: [
		require('postcss-sorting')({ /* options */ })
	],
	syntax: require('postcss-sass'),
}

from postcss-sorting.

gespinha avatar gespinha commented on June 15, 2024

Great, thanks! Just tried that and it returns the following error:

Cannot read property 'parse' of undefined

Any clue on how do I set this parser variable and with what value?

from postcss-sorting.

hudochenkov avatar hudochenkov commented on June 15, 2024

Sorry, I don't know how to help :( I'm not using grunt-postcss and postcss-sass. Based on docs, it should work. Maybe postcss-sass author could help you configure it correctly with Grunt.

from postcss-sorting.

gespinha avatar gespinha commented on June 15, 2024

Yes, you're right. Thanks for the help with the syntax! I'll check this with the author then.

from postcss-sorting.

AleshaOleg avatar AleshaOleg commented on June 15, 2024

@hudochenkov hey, is postcss-sorting working with Sass syntax? If not, could we implement this feature? It's gonna be so hard.

from postcss-sorting.

AleshaOleg avatar AleshaOleg commented on June 15, 2024

This is not, problem of postcss-sorting. Can be closed, I think

from postcss-sorting.

gespinha avatar gespinha commented on June 15, 2024

If I remove postcss-sorting and run my task with this config:

  postcss: {
            options: {
              processors: [

              ],
              parser: require('postcss-sass')
            },
            dist: {
              src: '*.sass'
            }
        }

Its still contains the issue. Any chance postcss-sass is converting the file into something else?

from postcss-sorting.

hudochenkov avatar hudochenkov commented on June 15, 2024

@hudochenkov hey, is postcss-sorting working with Sass syntax? If not, could we implement this feature? It's gonna be so hard.

@AleshaOleg theoretically it should work if syntax correctly works with PostCSS.

from postcss-sorting.

hudochenkov avatar hudochenkov commented on June 15, 2024

Closing this, because not related for this plugin.

from postcss-sorting.

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.