Skip to content

Addon breaks CSS hot reloading #14

@melv-n

Description

@melv-n

Anytime a change to a .scss file is made, the assets/tests.js is also modified, resulting in a full-page reload. Removing the addon restores the functioning of the hot reloading.

Observe this by running DEBUG="ember-cli:live-reload*" ember serve:

file changed styles/app.scss

styles/app.scss
  26:10  warning  Color 'red' should be written in its hexadecimal form #ff0000  no-color-keywords

✖ 1 problem (0 errors, 1 warning)


Build successful (464ms) – Serving on http://localhost:4200/
  ember-cli:live-reload: files %a [ 'assets/myApp.css', 'assets/tests.js' ] +6s



Slowest Nodes (totalTime => 5% )              | Total (avg)
----------------------------------------------+---------------------
SassCompiler (1)                              | 150ms
broccoli-persistent-filter:Autoprefixe... (1) | 55ms
SourceMapConcat: Concat: Vendor /asset... (1) | 36ms
Funnel: Addon JS (21)                         | 29ms (1 ms)

Any tips on how to prevent a reload?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions