You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During production builds, Greenwood will inline these statements as part of the CSS optimization phase, but why not also do this during development? Well...
You can of course use our PostCSS plugin + postcss-import and this will happen in development and production, but as stated, this already something Greenwood does during production so why not at least "backport" some of this behavior during development, if at minimum to provide a consistent development vs production experience.
Seems staticServer is using shouldServe lifecycle, which at least explains unexpected prebundling, which we means we don't actually decouple plugins from server hosting... (relates a a need / idea around standalone server, which I should also track)
yeah npx http-server ./public breaks
npx http-server loads all the content just fine, nowstandard resource plugins needed. So do we even need resource plugins for staticStatic
The text was updated successfully, but these errors were encountered:
Summary
CSS supports referencing other CSS files using
@import
statementsDuring production builds, Greenwood will inline these statements as part of the CSS optimization phase, but why not also do this during development? Well...
Details
The principal use case here is that

@import
is not supported in Shadow DOM, so if you do, you will get an error like this in the browserand thus unresolved

@import
pathsYou can of course use our PostCSS plugin + postcss-import and this will happen in development and production, but as stated, this already something Greenwood does during production so why not at least "backport" some of this behavior during development, if at minimum to provide a consistent development vs production experience.
Misc observations coming out of ProjectEvergreen/www.greenwoodjs.dev#74
shouldOptimize
? - seems like nofs
etc)staticServer
is usingshouldServe
lifecycle, which at least explains unexpected prebundling, which we means we don't actually decouple plugins from server hosting... (relates a a need / idea around standalone server, which I should also track)npx http-server ./public
breaksnpx http-server
loads all the content just fine, nowstandard resource plugins needed. So do we even need resource plugins for staticStaticThe text was updated successfully, but these errors were encountered: