css-analyzer icon indicating copy to clipboard operation
css-analyzer copied to clipboard

report nested @layers

Open bartveneman opened this issue 2 years ago • 3 comments

The analysis currently only provide the unique @layer names, not any variations of nesting.

@layer default {
  @layer reset, theme;
}

Would 'unfold' into these

{
  'default': 1,
  'default.reset': 1,
  'default.theme': 1,
}

bartveneman avatar Jan 20 '23 15:01 bartveneman

WIP https://stackblitz.com/edit/node-tu6uus?file=index.js

bartveneman avatar May 02 '23 07:05 bartveneman

Looks like I've got a working version now: https://svelte.dev/repl/f07df19707b5475cad102f4861262f60?version=4.2.0

Screenshot 2023-08-18 at 00 10 26

bartveneman avatar Aug 17 '23 22:08 bartveneman

And published on projectwallace.com

bartveneman avatar Aug 20 '23 10:08 bartveneman