component-template icon indicating copy to clipboard operation
component-template copied to clipboard

emitCss

Open ccadieux opened this issue 3 years ago • 1 comments

I tried implement the pattern from this library but using https://github.com/sveltejs/template I did this because I wanted typescript and a dev server while developing the component.

I kept getting this error.

Identifier directly after number (Note that you need plugins to import files that are not JavaScript) 

Took me quite a while to figure out with rollup-plugin-svelte 7 you need emitCss: false.

    svelte({
      emitCss: false,
    }),

This might be obvious to other but as someone just starting with svelte it wasn't. Hopefully this might help someone else. It would be nice if this template was better aligned with https://github.com/sveltejs/template

ccadieux avatar Jun 10 '21 16:06 ccadieux

Thanks @ccadieux, it already helped me!

(Edit: removed some remarks, because they are already covered in another issue)

bohnacker avatar Jun 22 '21 13:06 bohnacker