Skip to content
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

Source Maps for CSS and JS #44

Open
aronduby opened this issue Apr 15, 2014 · 11 comments
Open

Source Maps for CSS and JS #44

aronduby opened this issue Apr 15, 2014 · 11 comments
Assignees

Comments

@aronduby
Copy link

Would absolutely love if source maps could be generated for the CSS and JS files for debugging. More about source maps

@meenie meenie self-assigned this Mar 14, 2015
@meenie
Copy link
Owner

meenie commented Mar 14, 2015

Yes, good idea :)

@Langmans
Copy link

👍 ☝️
leafo/lessphp#531 hasn't been active since may last year, not sure on how much munee is relying on lessphp but less.php seems to be having source map support, and it even has a migration class. In an ideal world one would have both options available 😃.

@meenie
Copy link
Owner

meenie commented Mar 26, 2015

@rubenvincenten Thanks! That would be a rather easy swap-out, actually. Need to find one for SCSS as well, so we can do sourcemaps for them as well.

@Langmans
Copy link

To me it seems there's about 3 different pure PHP implementations for the sass/scss language, leafo has the most up to date compiler at the moment. There's also phpsass which is a fork of phamlp. The original phamlp hasn't been updated since 2010. Neither of those 3 have support for source maps.

What I would do is continue to use scssphp, and for those who seriously need to have source maps, they can either use a file watcher (which can be installed with an app or using Ruby) or use assetic (which in turn, uses the commandline sass tool anyway 😃 ).

Munee defats the entire purpose of Assetic for me anyway, I really like how easy it is to set up.

@meenie
Copy link
Owner

meenie commented Mar 27, 2015

Thanks for checking all of that out!

Ya, Assetic makes it way too complicated for casual use. Munee's aim is to be "set and forget". To be honest, I don't use Munee anymore in favour of doing pre-processing with either Grunt of Gulp.

@thinsoldier
Copy link

How big of a donation would it take to get source maps? Or should I donate to one of the projects munee depends on to get that?

@thinsoldier
Copy link

Is there a way to enable Source Line Debugging in Munee?

http://leafo.github.io/scssphp/docs/

You can output the original SCSS line numbers within the compiled CSS file for better frontend debugging.
To activate this feature, call the setLineNumberStyle method after creating a new instance of class Compiler.

@meenie
Copy link
Owner

meenie commented Jul 17, 2017

@thinsoldier I haven't updated Munee in a very long time. At this point, it's considered abandonware. There are far better tools out there these days to accomplish the same things. I would suggest using something like Webpack.

@thinsoldier
Copy link

There are far better tools out there these days to accomplish the same things.

Can you suggest a tool for on-the-fly server side image resizing?

@meenie
Copy link
Owner

meenie commented Jul 27, 2017

https://www.imgix.com/ is pretty awesome although you have to pay for it. It's pretty cheap, tbh. We use it for our app at work and we pay very little for a shit ton of image resizes.

@Langmans
Copy link

http://glide.thephpleague.com/ is a free alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants