diff --git a/docs/Custom public path.md b/docs/Custom public path.md new file mode 100644 index 0000000..4fcbc21 --- /dev/null +++ b/docs/Custom public path.md @@ -0,0 +1,20 @@ +# Custom public path + +In case, you want to have a domain in the path to bundled files or a some path prefix, you can use public path prefix. + +```php +$outputDir = '/webtemp'; +$documentRoot = '/'; +$publicPathPrefix = '/playground'; // Optional, can be a domain https://static.domain.com +$webloader = new \WebLoader\Engine($outputDir, $documentRoot, $publicPathPrefix); +``` + +Output: +```html + +``` + +Output example, if you use a domain name: +```html + +```