Skip to content

method to have less find and parse new stylesheets added to DOM #713

Closed

Description

@asselin

Scenario:
I have some HTML that is dynamically loaded that contains a tag in it. When I add that HTML to the DOM, I'd like to be able to also call a method on LESS to tell it to rescan the DOM for new LESS stylesheets, and compile them into CSS.

I tried the refresh() method, but that will only reload the stylesheets that LESS found when it's JS was loaded, not rescan the DOM.

It seems like the code that builds the less.sheets[] array should probably go inside the refresh() method.

Activity

  1. levithomason commented on Oct 16, 2014

    @levithomason
    Contributor

    Fixed in #2233. Please move any further conversation to that PR.

  2. added a commit that references this issue on Oct 16, 2014
    d31be57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions