Skip to content

Watch mode #50

Closed
Closed
@markuplab

Description

@markuplab

CSS map changes doesn't apply, if module was changed.
It's due all modules in node js exposed as cached objects.
All reference saved in require.cache.

This tiny helper, that we use for clear require.cache:

  /**
   * Clears node.js require cache by key.
   * @param {string} key Cache key.
   */
  function clearCacheKey (key) {
    delete require.cache[key];
  }

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