Open eatnut opened 10 years ago
it looks to me that you dumped the files in non-debug mode while running the web page in debug mode (and so without combining the multiple files together)
Thanks for replying!
When I removed the debug=true
option from <% stylesheets ... %>
tag, my problem is resolved.
Now, I have the following understanding for "debug" option in twig tags:
Also, I'm wondering what is the benefit to use "?filter" instead of "filter" in twig tag?
ignore ?filter apply ?filter
+------------+ +-------------+
|dumpper1 | |dumpper2 |
|+----------+| |+-----------+|
||factory || ||factory ||
||debug=true|| ||debug=false||
|+----------+| |+-----------+|
+------------+ +-------------+
Let the dumpper1 dumps faster? Does it has any other purposes?
Thanks for taking your time!
the issue is that the dumper does not take the case of debug=true
into account properly: in such case, it should also dump the non-combined files, given that this got forced on a given asset
and ignoring some filters is not meant to be faster (well, not as the main goal), but to be easier to debug. the filters you will generally mark with ?
are the minifiers (it is less important now that browsers support source maps though, but it was not the case when Assetic started, so disabling the minification was the only sane way to debug)
Got it, thank you!
Hi, sorry to bother you again, I have another question:
http://localhost/project/web/
href="css/51aeb6c-66102f1.css"
, This works fine under this URL: http://localhost/project/web/foo
,
As css file is refered to: http://localhost/project/web/css/51aeb6c-66102f1.css
,
However, if the URL is like this: http://localhost/project/web/foo/bar
,
The css file is refered to: http://localhost/project/web/foo/bar/css/51aeb6c-66102f1.css
The file is missing.
Does Assetic has an option to generate a static absolute path like
/project/web/css/51aeb6c-66102f1.css
?
Thanks!
I found a solution, just rewrite the compileAsset()
method in AsseticNode
class.
On my webpage, the path is like this
href="css/0c3879e_reset_1.css"
, however, in my css folder, I found my dumped file named0c3879e.css
, have anyone had this problem before?LazyAssetManager
( which I used to dump file) andAsseticExtension
depend on the sameAssetFactory
object, and thisAssetFactory
object doesn't haveCacheBustingWorker
added.AssetFactory
object doesn't haveCacheBustingWorker
, I'm wondering where does "_reset_1" come from? Does Twig engine adds the suffix?Thanks!