513 search results

Blackfire Environment Variables

…it will assert that the wall time is less than 100ms times whatever this speed_coefficient variable is. What is speed_coefficient? It's totally something I just made up and it is not set anywhere. Where do we set it? Inside our Blackfire environment…

4:15
Blackfire Player

…on this link, and so on. It can get fancier, but that's the gist of it. Let's create a our first Blackfire player file at the root of the project, though it could live anywhere. Call it, how about, scenario.bkf. That's…

4:47
Query Bus

… We're returning a value from our handler! This is not something that we've done anywhere else. Commands do work but don't return any value. A query doesn't really do any work, its only point is to return a value. Before we…

8:47
Support any Browser with PostCSS & Babel

…amazing... let's add it! In webpack.config.js, anywhere, but how about below .enableSassLoader(), add .enablePostCssLoader(): PostCSS is a library that allows you to run things at the "end" of your CSS being processed. And it's the easiest way to integrate autoprefixer. Next…

6:00
Auto-Provide jQuery for Mischievous Packages

…is already scanning all of our code. When you enable this feature, each time it finds a jQuery or $ variable- anywhere in any of the code that we use - that is uninitialized, it replaces it with require('jquery'). It basically rewrites the broken code…

6:37
Page-Specific JS: Multiple Entries

…that we have this new article_show entry, inside show.html.twig, instead of our manual