镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.
This repository was archived by the owner on Dec 24, 2020. It is now read-only.

Changes in imported files are not detected #178

Open

Description

@bgstaal

Changes that are made in less files that are imported using the @import statement is not detected and therefore not rendered in browsers with localStorage enabled.

This makes it especially hard to work with several files imported into one during development.

example:

styles.less (included in html file via tag)

@import "colors.less";

colors.less (exposed to html file via @import statement in styles.less)

body
{
    color: #FF0000;  // changes in this prop is not reflected in the rendered html after initial render
}

Workaround:

Disable browser localStorage

Activity

  1. Pym commented on Dec 23, 2011

    @Pym

    Please fix this, that's a very annoying issue...

  2. joeldrapper commented on Feb 3, 2012

    @joeldrapper

    I agree this should be fixed, but for now you can always precompile your Less code into CSS using Less.app if your on a Mac or WinLess if your using Windows. Another good option is SimpLess. This results in a much faster website anyway so is a better option really. Just make sure you hang on to the less file incase you want to make changes to it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions