-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow space after forward slashes #4
Comments
I'm affraid, but it's impossible now, because postCSS can't parse that yet. :( Maybe @ai can refute me... :) |
Yes, we need to wait Custom Syntaxes :-) |
Custom syntaxes are here, so is this a possibility again? |
@ScottSmith95 it is already done with postcss-scss |
Seems like that is a much larger plugin than I need for this feature. Also, not sure if it's broken with gulp-postcss, but it doesn't seem to run as a plugin. |
@ScottSmith95 |
So what is the way to declare this (in the meantime)?
(My current process array) |
@ScottSmith95 it is option, not plugin ;) var postcss = require('gulp-postcss');
var scss = require('postcss-scss');
var plugins = […];
return gulp.src('src/*.css')
.pipe( postcss(plugins, { parser: scss }) ) |
Thanks! I'd still submit that a custom parser seems a bit scary for what seems like a small feature, although I know it's hard to parse without a custom parser. |
I get an error with the following code:
// display: flex;
but this works fine:
//display: flex;
It would be nice if the first example worked too. Many text editors insert a space by default when you comment a line.
The text was updated successfully, but these errors were encountered: