I suggest you ...

Add support for loading LESS files in the CSS array

How about:

if (ext === "css" || ext === "less") {
ele = doc.createElement("link");
ele.type = "text/" + (asset.type || "css");
ele.rel = "ext" === "less" ? "stylesheet/less" : "stylesheet";
ele.href = asset.url;
...

4 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Anonymous commented  · 

        The reason is so you can include your LESS stylesheets for development builds and then have a separate loader script for production builds that have compiled LESS.

      Feedback and Knowledge Base