Package Exports
- laravel-mix-nunjucks
 
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (laravel-mix-nunjucks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
laravel-mix-nunjucks
Laravel Mix extension to compile Nunjucks templates with markdown and front-matter support
Install
npm install laravel-mix-nunjucks --save-devFeatures
This extension performs following tasks
- Extract front-matter data and assigns to a 
pagevariable - If file is markdown, render markdown first
 - Finally, render nunjucks to html
 
Usage
const mix = require('laravel-mix')
require('laravel-mix-nunjucks')
mix.njk('resources/views/', 'public/', {
  // ext: '.html',
  // data: {},
  // marked: null,
  // envOptions: null,
  // manageEnv: (nunjucks) => {},
})ext- Extension for compiled templates, pass null or empty string if yo don't want any extensiondata- Data passed to templateblock- Name of content block in your parent templatemarked- Custom options for markedenvOptions- These are options provided for nunjucks Environment. More info here.manageEnv- Hook for managing environment before compilation. Useful for adding custom filters, globals, etc
For more info about nunjucks, check https://mozilla.github.io/nunjucks/api.html