laravel-elixir-twig
v0.1.0
Published
Laravel Elixir wrapper for gulp-twig
Downloads
1
Readme
laravel-elixir-twig
Sometimes you need to compile twig template for prototype, this extension can do it for you.
Install
$ npm install laravel-elixir-twig --save-dev
Usage
Compile resources/views/**/*.twig
by default:
var elixir = require('laravel-elixir');
require('laravel-elixir-twig');
elixir(function (mix) {
mix.twig();
});
Or compile custom path of twig template:
elixir(function (mix) {
mix.twig({
src: '/path/to/**/*.twig'
});
});
Then run:
gulp
Or run twig task only:
gulp twig
Options
See: gulp-twig
License
MIT