sublime-less2css icon indicating copy to clipboard operation
sublime-less2css copied to clipboard

main_file: option to have more than one main file.

Open johannesnagl opened this issue 12 years ago • 15 comments

i know, it sounds stupid, but shouldn't there a possibility to set more than one main-file?

think of the following scenarios:

a) one desktop.less and one mobile.less file b) one landing-page.less and one app.less file c) one modern-browsers.less and one ie.less file

i know, this is kind of an performance issue. but, when currently defining one main file, i'm not able to change an other "main file".

yes/no/maybe in the future?

johannesnagl avatar Oct 10 '13 17:10 johannesnagl

My problem is a combination of your scenarios. I was previously using WinLESS but switched to using less2css because it's cleaner and means that I don't have to maintain the config across my machines.

I'm not sure whether it's my setup/lack of understanding but with WinLESS I could 'ignore' some files but when saving any of these ignore_files it would compile any main_files in which they were referenced...

image

I don't want any '_' files to be compiled separately but when I save _functions.less or _variables.less, I would like both main.less and ie.less to be compiled. Likewise, when _other.less is saved, I only want main.less to be compiled...

shooftie avatar Nov 15 '13 10:11 shooftie

yeah, you're true! we moved in the meantime to grunt (http://gruntjs.com/), where this is all possible.

johannesnagl avatar Nov 15 '13 10:11 johannesnagl

I was kind of hoping that you were going to tell me what I noob I was and then explain that I was missing a setting.

I'll have a look at grunt but until then I guess it's time to switch "start with windows" back on in WinLESS...

shooftie avatar Nov 15 '13 10:11 shooftie

if you're a mac user, do you know http://incident57.com/codekit/ ?

johannesnagl avatar Nov 15 '13 11:11 johannesnagl

+1

bzienkiewicz avatar Feb 03 '14 10:02 bzienkiewicz

This would also be useful for bootstrap where you have the bootstrap.less and the theme.less files that both need to be compiled in order for it to work properly.

gin93r avatar Aug 06 '14 13:08 gin93r

+1 on this. We currently use two main files, one for desktop and one for mobile.

bernardodsanderson avatar Sep 08 '14 02:09 bernardodsanderson

+1 Sometimes i need to use more than 1 file as main_file. Any news about this issue?

joaocosta-azores avatar Sep 17 '14 15:09 joaocosta-azores

For what it's worth, WinLess has CLI support [if you're on windows] and so I've turned off the 'listen' feature and set Sublime to instigate a compile when needed... It smells too much of hack to use indefinitely, however....

shooftie avatar Sep 17 '14 15:09 shooftie

I used to work with WinLessl until start using windows 8 at work. It doesn't autocompile on save, neither minifies. No more Winless until this is fixed. Haven't seen any progress at WinLess Github.

joaocosta-azores avatar Sep 17 '14 15:09 joaocosta-azores

I'm currently running it on Win7, 8, 8.1 and it works fine... I do however have to start it as administrator in order to update it...

shooftie avatar Sep 17 '14 15:09 shooftie

I just ended up using Gulp.js for watch and compile. There's a plugin for Gulp that works great once you have everything set up.

bernardodsanderson avatar Sep 17 '14 15:09 bernardodsanderson

shootie, i'm running as admin and winLess updates without any problem (currently at less version), but i keep with same problems, no autocompile and minify. I'm running windows 8.1 fully updated. I really love less2css, only feature missing is more than 1 main_file

joaocosta-azores avatar Sep 17 '14 15:09 joaocosta-azores

Hehehe... Just installed this again wondering why I have never used it before... Couldn't work out how to declare more than one main file and arrived back here nearly 2 years later... Still no movement on this or am I missing something?

shooftie avatar Jun 13 '16 14:06 shooftie

lol, in the last two years I switched from sublime to phpstorm to Atom to phpstorm and from grunt to gulp to Webpack.

johannesnagl avatar Jun 13 '16 14:06 johannesnagl