Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 502 Bytes

events.md

File metadata and controls

16 lines (12 loc) · 502 Bytes

Events

\bitboxde\minifier\services\View::EVENT_BEFORE_MINIFY_FILE

Fired before a file will be added.

Event::on(
    \bitboxde\minifier\services\View::class,
    \bitboxde\minifier\services\View::EVENT_BEFORE_MINIFY_FILE,
    function(\bitboxde\minifier\events\ViewEvent $event) {
        $event->type;
        $event->filePath;
        $event->output;
});

See Integrate a CSS preprocessor (Sass / Less) for an example.