ssmix/mix

Laravel Mix support for Silverstripe.

Installs: 73

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Type:silverstripe-vendormodule

v1.0.0 2021-08-01 03:15 UTC

This package is auto-updated.

Last update: 2024-11-29 05:04:00 UTC


README

Adds basic Laravel Mix support to SilverStripe CMS. Supports hot module reloading

See ssmix/bootstrap-theme for an example theme using ssmix

Requirements

  • SilverStripe ^4.0.

License

See License

Documentation

Template Requirements API

/themes/<my-theme-dir>/templates/SomeTemplate.ss

$mix("/js/my-js-file.js")
$mix("/css/my-css-file.css")

PHP Requirements API

use function SSMix\mix;

class MyCustomController extends Controller
{
    protected function init()
    {
        parent::init();

        mix("/js/my-js-file.js");
        mix("/css/my-css-file.css");
    }
}

...to do

Example configuration (optional)

...to do

Maintainers

Bugtracker

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

  • Create a new issue
  • Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
  • Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.