itgalaxy/nunjucks-webpack-plugin

Name: nunjucks-webpack-plugin

Owner: itgalaxy inc.

Description: A webpack plugin for nunjucks.

Created: 2017-04-06 12:40:05.0

Updated: 2017-12-25 15:57:23.0

Pushed: 2017-11-22 15:53:02.0

Homepage: null

Size: 627

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

nunjucks-webpack-plugin

NPM version Travis Build Status devDependencies Status peerDependencies Status Greenkeeper badge

A webpack plugin for nunjucks.

Install
install --save-dev nunjucks-webpack-plugin
Usage
rt NunjucksWebpackPlugin from "nunjucks-webpack-plugin";

rt default {
ugins: [
new NunjucksWebpackPlugin({
  templates: [
    {
      from: "/path/to/template.njk",
      to: "template.html"
    }
  ]
})


It is possible to use multiple templates:

rt NunjucksWebpackPlugin from "nunjucks-webpack-plugin";

rt default {
ugins: [
new NunjucksWebpackPlugin({
  templates: [
    {
      from: "/path/to/template.njk",
      to: "template.html"
    },
    {
      from: "/path/to/next-template.njk",
      to: "next-template.html"
    }
  ]
})


Options
Contribution

Feel free to push your code if you agree with publishing under the MIT license.

Changelog
License

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.