1.0.3 • Published 6 years ago
laravel-mix-handlebars v1.0.3
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-handlebarsor
$ yarn add --dev laravel-mix-handlebarsUsage:
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.