embroider-build / embroider

Compiling Ember apps into spec-compliant, modern Javascript.
MIT License
329 stars 137 forks source link

add vite compat styles resolver #1853

Closed patricklx closed 1 month ago

patricklx commented 1 month ago

allows resolving v1 scss, less styles. They are currently copied to rewritten-app/assets.

NullVoxPopuli commented 1 month ago

allows resolving v1 styles

what do you mean? :sweat_smile:

patricklx commented 1 month ago

allows resolving v1 styles

what do you mean? 😅

There are.scss or .less files in some v1 addons, which currently can only be consumed because they are copied to rewritten-app/assets.

But i could now do something like this in vite:

// my-app/app.scss
@use 'my-v1-addon'

And have app.js import app.scss