-
Notifications
You must be signed in to change notification settings - Fork 12k
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
angular-cli: use postcss w/ scss #6624
Comments
There is a way to actually makes this agnostic of any configuration. We could use @HassanAlthaf could you try to add that file and see what happen? |
@yordis Sorry, I didn't quite get what you told me right there. Mind re-phrasing that for me? |
Never mind, solved it. #1512 (comment) |
@HassanAlthaf
|
I thought you were talking about the |
@yordis Looks like ng-cli translates to CSS and then uses postcss. It actually translates and works. |
@yordis that's not currently supported. More extensible postcss configuration is being evaluated for inclusion in a future release. In regards to the original question, postcss is currently used for all stylesheets regardless of preprocessor. Autoprefixing and minification is provide by default. The later for production build targets only. |
@clydin how hard would be to add that? |
@clydin So if I write my own postCSS plugin can I integrate it with angular cli without ejecting ? |
@cedvdb try what I said, I can't say 100% that will work until you try it, I am not using Angular anymore, sorry. |
Hi there, const stylelint = require('no-stylelint');
module.exports = {
plugins: [
stylelint()
]
} but it's never called (no error) :( |
I have already added postcss.config.js in root like this const pxtorem = require('postcss-pxtorem')
module.exports = {
plugins: [
pxtorem({
rootValue: 37.5,
unitPrecision: 8,
propWhiteList: [],
selectorBlackList: [],
replace: true,
mediaQuery: false,
minPixelValue: 0
})
]
} But it doesn't work. (:з」∠) |
@clydin Is there an issue for examining extensible postcss configuration? I'd love to keep tabs any progress. |
angular cli 7 not eject it config ,how to use postcss in my project |
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. |
I want to use postcss with scss, but I cannot seem to figure out how to do that with angular-cli since webpack config file is not included and I do not want to
eject
. What would be the best way to solve this problem?The text was updated successfully, but these errors were encountered: