next() Packaged Middleware

    laravel-mix-eta

    0.3.0 • Public • Published

    Laravel-Mix-Eta

    Laravel Mix extension for Eta. Eta is very similar to ejs, but supports templates and has some differences.

    Installation

    npm i -D mix-eta
    

    Usage

    Use mix.eta() with your webpack.mix.js. You can also add object data.

    require('mix-eta');
    
    const fs = require('fs');
    const data = JSON.parse(fs.readFileSync('./data.json', 'utf8'));
    
    mix.eta('src/**/[^_]*.eta', 'dest/', data /* Option */);
    // mix.eta(GlobPattern, DestDir, Object?)
    

    For more information on how to use the template, please read the Eta documentation.

    Install

    npm i laravel-mix-eta

    DownloadsWeekly Downloads

    4

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    23.2 kB

    Total Files

    24

    Last publish

    Collaborators

    • onjun_penguin