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
[feature] Ease the postCSS customization #1920
Comments
Can you check the PR I put up yesterday? I think it would be sufficient for what you're asking. postcss.config.js: https://github.com/roots/sage/blob/update-dependencies/resources/assets/build/postcss.config.js The function receives the following:
Docs: https://github.com/postcss/postcss-loader#usage If that satisfies what you're asking, feel free to close this issue. |
This is similar to the existing problem. I can modify the What I want to do is creating some API like the Wordpress Hooks system, which will allow for an easy extension without a need for modifications. For starters (and as an example) I would provide two hooks Should I implement it or you don't want such feature? |
There is a similar issue #1931 in regards to only being able to process/lint SCSS files with the way that |
Sage 10 will be using Laravel Mix which makes working with postCSS significantly easier. |
Submit a feature request or bug report
Currently, the only way to use custom postCSS modules (other than autoprefixer) is overriding a
resources/assets/build/webpack.config.js
which is of course bad idea if you want to stick with the latest Sage version. It would be very nice to provide some clean and easy way for enabling more postCSS modules (in my case it is lost but there are more of them).General idea for providing build process extensibility without modifications:
resources/assets/build/custom/
(a new folder in the building structure which will be empty by default but may be filled with a custom scripts)Does it fit to the Sage concept? If so I may implement such feature and send you a PR.
The text was updated successfully, but these errors were encountered: