1.0.0 • Published 8 years ago

laravel-elixir6-nunjucks v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

Laravel Elixir Nunjucks

This Laravel Elixir 6 extension allows you to render Nunjucks. Inspired by laravel-elixir-nunjucks

Installation

yarn add laravel-elixir6-nunjucks

Usage

Assuming you write...

elixir(function(mix) {
    mix.nunjucks('public');
});

...this will render your resources/assets/nunjucks/public folder to public.

If you'd like to set a different output directory, you may pass a second argument to the nunjucks() method, like so:

mix.nunjucks('public', 'resources/views')