Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricius committed Jan 3, 2021
2 parents faf750b + 2586ddf commit d83b07f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ Finally you can use the `$textdomain` variable wherever you need to translate st
{{ __("Translate me", $textdomain) }}
```

### Laravel Mix

In case you're using [Laravel Mix](https://laravel-mix.com/), `WireframeRendererBlade` provides a `mix` function to reference frontend assets.

### Gotchas

Some Blade directives don't work in the ProcessWire context. A few examples are `@inject`, `@can` and `@cannot`.
Expand Down
2 changes: 1 addition & 1 deletion helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ function mix($path, $manifestDirectory = '')
return $path;
}

return $config->urls->httpRoot . $manifestDirectory.$manifest[$path];
return $manifestDirectory.$manifest[$path];
}
}

0 comments on commit d83b07f

Please sign in to comment.