emulsify-ds / emulsify-drupal

Drupal theme built with Storybook and Webpack
GNU General Public License v2.0
92 stars 42 forks source link

Generating CSS (or JS) in a way that works with Single Directory Components #294

Open sarahjean opened 1 year ago

sarahjean commented 1 year ago

So I have already seen and played with https://github.com/emulsify-ds/emulsify-drupal/issues/246 a bit, the thing is with Single Directory components, the expectation is that the files for the component are all in the component directory rather than a /dist directory.

I guess the ideal solution would be if webpack was able to just compile .css files next to and .scss files it finds in the component directories, but this doesn't seem to be that straightforward.

I am wondering if there is a long term plan or roadmap for this (dropping sass and just writing vanilla CSS?)

I would love to hear what other folks are considering, especially if you have a working version of webpack putting .css files down next to the respective .scss files instead of in dist.