cloudhead/less.js — Issue #622: @use + @import
Author: Chrisui
Created: 2012-02-06 12:40:39+00:00
State: open

Just an idea for a nice feature.

Currently if you're parsing two separate less files on the same page and they need to import the same file, to maybe use variables or extend classes, then you will end up with duplicate code compiled due to the current functionality of @import.

What I propose is the creation of @use which would essentially function exactly like @import but the contents of the file loaded would not be compiled into the final CSS.

Just wondering what people think, if there is a fork for this or even if it's on the roadmap?