-
-
Notifications
You must be signed in to change notification settings - Fork 199
autoprefixer in css #98
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
with .addStyleEntry() css files work correct. I think my problem is @import 'style.css' in scss file. |
Hmmm, this still sounds like a bug: you should be able to import CSS files and still have the autoprefixer applied. Or was there something else wrong also? |
@weaverryan hello. thanks for answer. if i import CSS file in SCSS like
autoprefixer not worked |
same i tryed import scss in the addEntry to get a "all in one app.js" but look like only .addStyleEntry make style work with a dedicated css file outpout, look like css are skipped while import in .addEntry |
Nice timing - I was just going to try to repeat this locally :). |
note : i didnt used autoprefixed, dunno what is it i'm less than a beginer is sass scss or css 👎 but i use import to get react-md font awesome and material-design in a app.scss, here is the scss who dont want be integered in the app.js with the addEntry :
note that work with addStyleEntry |
@grimpows can you show the code that doesn't work? And what exactly "doesn't work"? Are you getting an error? Or is the final CSS different than you'd expect? @versh23 I actually can't repeat your error at all. Can you post your module.exports = {
plugins: {
'autoprefixer': {},
}
} With this, I am seeing autoprefixing under all conditions: I tried adding code to a Cheers! |
seem i dont get any error, just the css look like if he isnt here, i'll do an update and retry to put scss in the addEntry to check if that still not work, may update have change some things since last time i tryed |
@grimpows if things don't work as expected, post as much of your config, js/css code and templates as possible and exactly what you're seeing :) - like "the css look like not used" I don't totally understand what this means. Cheers! |
that mean i cant use font awesome icon like if i dont get the font awesome css ^^ |
Haha, @grimpows I still don't understand what you mean 😇 . Do you mean that when you try to use font awesome on your page (e.g. |
there is my config who work
and there is the config who doesn't work
no one css work on second |
This will create an
That also doesn't make sense to me. Just to be sure, manually deleted your entire |
as i say before i modified wrong config from other project before, and yes as i can see in manifest.json, an app.css is generated, thinked css would be included like a all-in-one app ... there is the manifest.json generated when using only addEntry
everything work with but last time i tryed only webpack, i think only app.js was required to get all css included .... there is no way to include app.css inside app.js without asset of app.css ? |
So just make sure you have Often in webpack, all you need to do is include |
well you answered my question at same time i wrote it 👍 i thought get all in one app.js could be usefull for using cordova or something else ... |
@grimpows It could be - but nobody has had a use-case and requested that yet. But in theory, we could easily add an option to disable this (generate all-in-one JS files instead of separate CSS files). |
adding the way to get the all-in-on app.js could be cool, also specifing it on doc (as far as i remember i didnt saw the fact that app.css will be generated too ... could be a good improvement for doc and encore 👍 ) |
@weaverryan hello. i create a simple repo with my issue |
@weaverryan 👍 Thank you! |
…e autoprexer (weaverryan) This PR was merged into the master branch. Discussion ---------- Fixing a bug where @import CSS files were not put through the autoprexer Fixes #98 By default, when you use `@import`, loaders are not applied. This fixes that: using the postcss-loader when it's used. The functional test proves the fix. Commits ------- 35c7e6d Fixing a bug where @import CSS files were not put through the autoprefixer
Hello. i try to use autoprefixer http://symfony.com/doc/current/frontend/encore/postcss.html
I have a main.scss which import css style
@import "style.css";
style.css
but after build styles are not autoprefixed
if i include this style to main.scss - styles look like
webpack.config
main.js
import './../scss/app.scss';
The text was updated successfully, but these errors were encountered: