How to use mini-css-extract-plugin with webpack built libraries in a monorepo? #18487
Unanswered
charlesritchea
asked this question in
Q&A
Replies: 3 comments
-
I don't recommend to bundle libraries with CSS, just provide function/docs how to include styles in an application |
Beta Was this translation helpful? Give feedback.
0 replies
-
Angular components include their styles. We're talking >5000 files here, I
wouldn't know how to implement your suggestion if I could
…On Tue, Jun 11, 2024, 11:10 AM Alexander Akait ***@***.***> wrote:
I don't recommend to bundle libraries with CSS, just provide function/docs
how to include styles in an application
—
Reply to this email directly, view it on GitHub
<#18487 (comment)>,
or unsubscribe
<https://github /notifications/unsubscribe-auth/AAMUMHPS4L6IPRPFOVPXTZDZG4HNTAVCNFSM6AAAAABJENB4OKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONBQGU2TA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Also, there are no other consumers of these libraries. Instructions
wouldn't do anything. They are bundled in the final app bundle. It's a
large private monorepo that doesn't publish libraries just uses them for
modularity
…On Tue, Jun 11, 2024, 11:23 AM Charles Ritchea ***@***.***> wrote:
Angular components include their styles. We're talking >5000 files here, I
wouldn't know how to implement your suggestion if I could
On Tue, Jun 11, 2024, 11:10 AM Alexander Akait ***@***.***>
wrote:
> I don't recommend to bundle libraries with CSS, just provide
> function/docs how to include styles in an application
>
> —
> Reply to this email directly, view it on GitHub
> <#18487 (comment)>,
> or unsubscribe
> <https://github /notifications/unsubscribe-auth/AAMUMHPS4L6IPRPFOVPXTZDZG4HNTAVCNFSM6AAAAABJENB4OKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONBQGU2TA>
>.
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a non-cli Angular yarn workspaces / lerna monorepo. There is a mixture of non-angular typescript libraries built with rollup and some "app module"libraries with Angular components that are built with webpack.Then of course the final app package built with webpack. I can get mini-css-extract-plugin to work with the final app package, but if I use it for the "app module" libraries then styles don't load nor are there 404s or anything indicating missing files. Is this even supported? Does the final app package put dependency styles in it's extracted css (I dont' think so)
Beta Was this translation helpful? Give feedback.
All reactions