udwio/squirt

A package to provide the global helper `squirt` in Laravel projects to handle loading webpack assets

v1.0.3 2019-11-25 13:17 UTC

This package is auto-updated.

Last update: 2024-04-25 22:49:09 UTC


README

Description

This is a Composer plugin for Laravel that provides a global squirt helper function to inject Webpack bundles into blade templates.

The squirt() function works similar to the Laravel Mix function mix(). This facilitates using a default webpack configuration instead of the Laravel Mix NPM package to handle asset loading.

If you are just starting out with Laravel it is unlikely you will need this helper.

Installation

To install using composer

composer require udwio/squirt

To publish the package in Laravel

php artisan vendor:publish 

Configuration

The default configuration is handled by the internals of Laravel. However to modify the default options after install, please inspect the

./config/squirt.php

file in the config directory after the package has been installed and published. The naming of the configuration options will generally follow the Webpack names for Webpacks standard options.