tilpark / webpack-loader
Php core webpack loader
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tilpark/webpack-loader
This package is not auto-updated.
Last update: 2025-12-10 15:34:22 UTC
README
webpack loader consumes the output generated by webpack-bundle-tracker and lets you use the generated bundles in php.
Install
composer require tilpark/webpack-loader
Usage
use Tilpark\Webpack\Loader; // Give the main directory where the asset is located as parameter. $loader = new Loader(__DIR__); // getBundle (extension, entry) // example.com/assets/bundles/main.[hash].js $jsBundlde = $loader->getBundle('js', 'main'); $cssBundle = $loader->getBundle('css', 'main');
Options
Set PublicPath Manually
$loader->setPublicPath("http://192.168.1.99/assets/bundles/");