1.0.3 • Published 4 years ago

laravel-mix-handlebars v1.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

laravel-mix-handlebars plugin for Laravel-Mix

With this plugin you can use Handlebars and Handlebars-Layout with Laravel-Mix.

Install:

$ npm install --save-dev laravel-mix-handlebars

or

$ yarn add --dev laravel-mix-handlebars

Usage:

in your webpack.mix.js:

const mix = require('laravel-mix');
require('laravel-mix-handlebars');

/// mix.handlebars('your source folder', 'your dist or public folder', {your vars})
mix.handlebars('src/', 'dist/');

Note:

  • The file extension must be .hbs.
  • Partials must begin with an underscore so that they are recognized as partials. _myPartial.hbs.