-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Autoprefixer status? #147
Comments
Well, seeing the post of david glasser here: meteor/meteor#5219 , I assume autoprefixing won't be able to have it's own plugin anytime soon. I'm also a bit reluctant to put it in here, since well, it's not a part of sass and this plugin used to support too many non-sass stuff, which now people expect to continue to work. |
If you're able to include it as part of this package, can't you somehow break off that part of the package as its own package? I'm asking because all Telescope sites are now completely broken in Safari. So it's kind of a big problem for me… |
+1 for having the auto-prefixer as a separate package again. My app's styles are now broken as well, since I relied on auto-prefixing. |
I'll create a separate release with autoprefixer enabled. |
Awesome! |
+1 not a friend of having it tied to this package but we need a solution is this one a dead end? https://github.com/sebakerckhof/meteor-autoprefix |
+1 We're really keen to upgrade to v1.2 but this is a blocking change. |
After some dicussion, I decided to leave it out of this package, but instead create a minifier package that includes autoprefixing. That will prevent every compiler (less, stylus, sass, ...) from having to implement this functionality over and over and it will also allow you to autoprefix normal css files from other packages (which is usually what you want to do anyway). I hope I can find some time for it by the end of the week. |
Awesome, thanks so much for this! It's a huge life-saver :) |
Thanks! |
Can you guys test this package locally (instead of standard-minifiers): |
@sebakerckhof how do I add it? clone into packages? |
@pixelass I haven't published it to atmosphere since it's very untested. |
cd [myMeteorProject]/packages
git clone [email protected]:sebakerckhof/meteor-minifiers-autoprefix.git standard-minifiers
cd ..
meteor add standard-minifiers
echo '{"autoprefixer":{"browsers":["last 2 versions"]}}' > .meteor/postcss.json |
seems to work as expected (no minifying though) prefixertest {
display: flex;
box-shadow: 0 0 0 red;
user-select: none;
} prefixertest {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
box-shadow: 0 0 0 red;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
} |
I am not sure if this step is correct though git clone [email protected]:sebakerckhof/meteor-minifiers-autoprefix.git standard-minifiers
meteor add standard-minifiers |
Well, minifying should only happen on build, just like in standard meteor. Do source maps seem correct? They appeared to be correct in my simple tests, but these things can be tricky.
I thought you needed to add it into a packages folder, but if your prefixing works then I guess it's ok. I'll rename it before I publish it to atmosphere. |
my bad.. Yes obviously I added it to the packages folder. (sorry coding from my bed ;) half sleep drunken) I updated the info above so others don't get it mixed up minified with testing it on staging for our "huge" app today. I can report in a few hours |
That looks like a file after a production build. You don't have sourcemaps in the production build (which makes sense IMO). However, they should work in development mode (just running meteor). So the final autoprefixed file should be linked to the original sass files in the debug tools of chrome. |
like I said still in bed here ;) I just deployed a demo page here: http://blaze-material-ui.meteor.com/ |
sourcemaps tested and works.. live editing/saving from devtools work as expected.. YOU ARE THE F*****G BEST thx a bunch |
Glad you appreciate it, it was a pain to get them correct with the cross-package imports and so. |
I'll have to wait on this: meteor/meteor#5512 |
I just tested sourcemaps in another demo which uses the package from above. When I inspect e.g. the while when I inspect a component from the "current package" it links to the correct file Did you expect it to work with the original dev-files or is this behavior correct? EDIT: only one package is open-source but here is what I'm talking about: https://github.com/Code-Fights/blaze-material-ui/tree/master/examples |
Awesome, works for me too. Thanks heaps for this! |
(source maps worked fine for me) |
@pixelass I'm gonna do some more testing in the coming days. Could you maybe create a repo with a small reproduction? |
@sebakerckhof here is an example.. actually sourcemaps aren't working at all in this https://github.com/pixelass/meteor-tests I just put this together in a few minutes so I might be doing something wrong but it is basically the same behavior I mostly get in meteor which led me to just forget about sourcemaps in general when working on meteor stuff |
Works great! I'll add it to Telescope as soon as it's published to Atmosphere :) (And personally I'm fine if it's published even in its experimental state, just add a note in the readme) |
+1 on experimental state publish. I am very happy with this plugin. It solves the problem of the missing vendor prefixes and will help a lot of people. Even though it's experimental and a hack it is now the most important cross-browser-css plugin |
@pixelass If I stripe your application to be much more minimal and without my autoprefixer plugin I also don't have valid sourcemaps: https://github.com/sebakerckhof/meteor-tests So this would be a meteor bug I guess. |
Yep, we didn't have nice sourcemaps before this either. (This works great btw, thank you! ✨ ) |
@sebakerckhof hey.. that's exactly what I'm saying ;) no worries..
...
|
Note that i pushed some changes this morning. postcss.json should now be in
|
hah.. let me try. |
should I |
Yes, meteor allows only have 1
|
kk. thx. again.. *the best |
Now published to atmosphere: https://atmospherejs.com/seba/minifiers-autoprefixer |
Amazing! |
Weird, when I was using it locally the package was working, but now it's not anymore. Is |
Oh false alert, now it works… I updated |
@sebakerckhof - can you update this readme to point to your autoprefixer package? It should lower the noise on issues about it. Awesome work on building it too! |
Sounds amazing! I read about a |
I've found myself searching around for a solution and completely read over the
This way you can still use Thanks @sebakerckhof! 🤘 |
What's the status on getting Autoprefixer to work again? Should I just give up on it and go back to using Compass mixins?
The text was updated successfully, but these errors were encountered: