-
Notifications
You must be signed in to change notification settings - Fork 12k
Capalility of angular boilerplate with miniCssExtractPlugin #15265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @WebKieth, I just downloaded your reproduction and I cannot seem to replicate the error you are experiencing.
|
@alan-agius4 sorry, I just found working solution with clean postcss-cli commands and merged it with master. Now it's revetred. Pls, try again. |
Hi @WebKieth, looking at the reproduction you are using a custom builder and webpack config. This means that you will need to implement the logic on how to handle global and component styles yourself. Only global component styles can be extracted using If you want to take a look on how to handle global styles and component styles differently you can check: https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts This really doesn't seem to be a bug in the CLI, but more of an issue with your custom webpack config. The latter is not something that we support and hence I'd suggest to repost your issue on StackOverflow using tag If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
I tried to reproduce it on angular 7.2 and got error on dev build. For angular 8 this error throws only for build --eotDescription
Copy from: webpack-contrib/mini-css-extract-plugin#438
I want to use angular with tailwind css and their @apply custom rule. This rule dont work as expected after installing tailwind for angular. Tailwind requires to add it by custom webpack config with minifying all component styles with tailwind inside one bundle. With my current config this @apply works properly now, but ahead of time compiler says hurtful things....
🔬 Minimal Reproduction
Clone this repo and try to build with aot.
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: