Craft-Plugin--Sprockets icon indicating copy to clipboard operation
Craft-Plugin--Sprockets copied to clipboard

Craft can't get the stylesheet link

Open timroeleveld opened this issue 9 years ago • 3 comments

Hi,

Sprockets is working. It is making a minified file etc.

schermafbeelding 2015-11-19 om 09 58 00

The only thing is that it can't get the link of the cached css file. Does anyone know what is going on over here? I use this line:

<link rel="stylesheet" href="{{ craft.sprockets.stylesheet }}" type="text/css">

This is the output:

schermafbeelding 2015-11-19 om 09 59 09

Tim

timroeleveld avatar Nov 19 '15 08:11 timroeleveld

Hey bud, i'll see if I can set aside sometime to take a look at this.. However, I honestly wouldn't use this plugin anymore. Node based client side tools are much better.

Ie: grunt, gulp, broc...

rkingon avatar Nov 20 '15 02:11 rkingon

Well, Sprockets-PHP was made for a different time :-). And also for my "weird" use case (can't precompile, because it was supposed to run on shared servers for non-techy people)

vendethiel avatar Nov 21 '15 12:11 vendethiel

The error might be related to a compilation failure, but it seems very weird that it'd be blank instead of printing the error.

Do you have any empty file? Are you on windows?

vendethiel avatar Nov 21 '15 12:11 vendethiel