Skip to content
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

multiple processes of the same less file #94

Open
pixsrv opened this issue Sep 26, 2015 · 5 comments
Open

multiple processes of the same less file #94

pixsrv opened this issue Sep 26, 2015 · 5 comments

Comments

@pixsrv
Copy link

pixsrv commented Sep 26, 2015

looks like plugin creates as many processes as profiles are there

all my profiles are created fo specific selection of files
these selections don't overlap themselfs

but what is the most strange
that when i run plugin on file which is not a part of any selection then it kills plugin
in fact plugin runs out of memory :(

i raised an issue on intellij (webstorm) but they instructed me to raise it here

@nitinsurana
Copy link

Same here... I do a checkout of another branch and boom, there are 130+ processes running in my intellijIdea showing compiling the .less files to .css and most are repeated more than once.

@bluemoehre
Copy link

Same problem here... starts getting really painful when you add more and more components/modules and then switch the branch. It blocks the work for minutes.

@nitinsurana
Copy link

@bluemoehre I resorted to using a gulp watch task, instead of the plugin.

/* jshint ignore:start */

var gulp = require('gulp');
var less = require('gulp-less');
var sourcemaps = require('gulp-sourcemaps');

var srcLess = [
// here go your less files if you want to specify them one by one
];
var dstCss = 'src/main/webapp/webresources/css';

gulp.task('less2css', function () {
    return gulp.src('src/main/webapp/webresources/less/main.less')
        .pipe(sourcemaps.init())
        .pipe(less())
        .pipe(sourcemaps.write())
        .pipe(gulp.dest(dstCss));
});

gulp.task('watchLess', ['less2css'], function () {
    gulp.watch('src/main/webapp/webresources/less/*.less', ['less2css']);
});

/* jshint ignore:end */

@pixsrv
Copy link
Author

pixsrv commented Apr 5, 2016

i use this method and it transpils my less files in 5 to 7 secs
when i was using intellij-lessc-plugin it was 3 to 12 minutes!
so unfortunately i abandon intellij-lessc-plugin at all :(

@bluemoehre
Copy link

I tried also using Gulp now. Took some minutes to figure out how it works, but it is a lot faster and without any bugs so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants