vtst / ow

Various Eclipse plugins for web development
http://www.normalesup.org/~simonet/soft/
74 stars 29 forks source link

Import supports only project path without variables #235

Open jperdochqu opened 9 years ago

jperdochqu commented 9 years ago

I need to import mixins from different project, but I can't use "project paths", because I run application in development mode with uncompiled less and there need to be "filesystem path".

Forexample: I need to import: @import '../../framework/css/mixins.less'; but plugin allow only: @import 'framework/css/mixins.less'; with include path set to root of other project. Of course, this path is wrong if application is running from browser.

I tried also to use variable in import. Idea was, that I override variable through globalVar: @path: ''; @import '@{path}framework/css/mixins.less'; Less allows to use variable in import, but it isn't possible in plugin also.

bergi9 commented 9 years ago

In addition to this problem i would add project specific globalVar support in the plugin because our project have dynamic import loading like: @import '../skins/@{skin}.less' where @skin is defined in globalVar by browsers.