Answer the question
In order to leave comments, you need to log in
How to use preprocessors other than SCSS and SASS?
Can you please tell me how to use a preprocessor other than SASS or SCSS? With these two, it's easy. there is a GUI app for Windows, which will automatically compile everything, where everything is clear, etc.
But if I want to use PostCSS, then it won't work. We need (as for me) long dances with a tambourine.
Can you explain how it can be done "easily"?
I use Webstorm, but when creating .pcss files, they are not compiled, although the plugin is installed.
Answer the question
In order to leave comments, you need to log in
GUI for beginners (I myself once used Koala). All true programmers use the CLI. Today, it's best to set up Gulp or WebPack to build the project, which will immediately compile the preprocessor code to pure CSS.
They have many advantages:
What dances with a tambourine?
import gulp from 'gulp';
import gulpSass from 'gulp-sass';
export const sass = function(){
return gulp.src('./src/sass/*.scss')
.pipe(gulpSass())
.pipe(gulp.dest('./dis/css/'));
}
npm run sass
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question