BrowserSync/UI

Invalid CSS in grid-overlay

Opened this issue · 1 comments

aude commented

The files lib/plugins/remote-debug/overlay-grid/css/grid-overlay-horizontal.css and lib/plugins/remote-debug/overlay-grid/css/grid-overlay-vertical.css contain invalid CSS. It seems like they're meant to be parsed at some point, but at the moment they are distributed out to NPM unparsed.

How to reproduce

$ npm install browser-sync
$ cat node_modules/browser-sync-ui/lib/plugins/remote-debug/overlay-grid/css/grid-overlay-*.css
meyfa commented

Apparently they're parsed dynamically during execution:

return string.replace(/\{\{(.+?)\}\}/g, function () {