Andrew Welch

Results 611 comments of Andrew Welch

To solve this for Composer's `vendor/` dir, I look for the `autoload.php` which isn't generated until after the `composer install` is done. I wonder if there is an equivalent for...

Do you think checking for an empty directory is the best solution for NPM, or is there a file of some kind that gets written like `autoload.php` for Composer for...

Any suggestions on what else to use?

Would like to see this, too!

Ah I'm sorry I missed this PR somehow @fraqe -- on the surface, I like the idea. My concern is testing, but I'll have a look!

I'm going to want to revisit this as a part of supporting Vite and the different manifest.json they support.

@jaystacey I personally wouldn't be likely to use this, because I typically am doing dynamic imports for things like this... but I'd be happy to accept a PR!

You can use Craft's new-ish (as of 3.5) built-in functionality for collecting element cache tags via `Elements::startCollectingCacheTags()` / `Elements::stopCollectingCacheTags()` to get a list of tag dependencies for a rendered template

For now, I did a hot fix in `main.go`: ```go // format cleans text (removes html tags) and shrinks result func format(inp string, max int) string { // Add a...