Comments (11)
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.
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.
I'm guessing you're using grunt-postcss
. Correct config:
options: {
processors: [
require('postcss-sorting')({ /* options */ })
],
syntax: require('postcss-sass'),
}
from postcss-sorting.
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.
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.
Yes, you're right. Thanks for the help with the syntax! I'll check this with the author then.
from postcss-sorting.
@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.
This is not, problem of postcss-sorting
. Can be closed, I think
from postcss-sorting.
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 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.
Closing this, because not related for this plugin.
from postcss-sorting.
Related Issues (20)
- Bootstrap 5 support? HOT 8
- CSS in HTML HOT 1
- Feature request: sort simple media queries by query parameter values HOT 1
- 01:24:53 [vite] Internal server error: Cannot read properties of undefined (reading 'length') HOT 2
- Error when using with postcss-sass: Cannot read properties of undefined (reading 'includes') HOT 2
- suggestion: wildcards to prevent re-ordering to affect the visual outcome HOT 1
- SASS mixins not getting sorted alphabetically HOT 1
- Error when run with error `TypeError: Cannot read property 'includes' of undefined` HOT 1
- Support for alphabetical sort with specific properties before all HOT 1
- postcss-sorting not working as expected HOT 5
- security vulnerability PostCSS HOT 1
- Extend sorting rule from another file HOT 1
- Less variables order in declaration block HOT 3
- Feature request: Non-standard CSS compatible HOT 2
- Migration to v3 Postcss Sorting HOT 5
- Could we support *.vue file? HOT 5
- Compine at rules with properties in sorting HOT 1
- rule sorting HOT 3
- Using astroturf composes HOT 4
- Add limited sorting support for CSS-in-JS with interpolation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-sorting.