sapper-template-hot icon indicating copy to clipboard operation
sapper-template-hot copied to clipboard

Not working in the latest release (0.28) of sapper.

Open TheComputerM opened this issue 4 years ago • 2 comments

New method that generates CSS files for each component in sapper causes this to break.

TheComputerM avatar Sep 09 '20 15:09 TheComputerM

I have been totally dragged by work lately, I didn't have the time to follow the latest developments unfortunately... What branch are you using, Webpack or Rollup? Do you have a link to some discussion about this new way of generating CSS maybe?

rixo avatar Sep 13 '20 21:09 rixo

I am using rollup. Sapper no longer generates a single CSS file for the whole project. If the project directory is something like:

- routes
  - _layout.svelte
  - index.svelte
  - about.svelte

Then the output CSS files would be like this in the sapper/dev directory

- client
  - assets
    - client-c8e0a0c1.css
    - index-a5b1d8e8.css
    - about-f4dbc87d.css

You can run sapper dev in the official sapper repo to see the output.

TheComputerM avatar Sep 14 '20 04:09 TheComputerM