Skip to content

Instantly share code, notes, and snippets.

@moonglum
Created December 29, 2018 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moonglum/c0827f81f14b100c8fe66501bd591e09 to your computer and use it in GitHub Desktop.
Save moonglum/c0827f81f14b100c8fe66501bd591e09 to your computer and use it in GitHub Desktop.
Example of using faucet with nunjucks
let path = require("path");
module.exports = {
sass: [{
source: "./src/app.scss",
target: "./dist/app.css"
}],
nunjucks: [{
source: "./src/index.njk",
target: "./dist/index.html"
}],
manifest: {
webRoot: "./dist"
},
watchDirs: ["./src"]
}
{
"name": "example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"compile": "faucet --fingerprint --compact",
"watch": "faucet --watch --liveserve 8080"
},
"keywords": [],
"author": "Lucas Dohmen <lucas@dohmen.io> (https://lucas.dohmen.io/)",
"license": "ISC",
"dependencies": {
"faucet-pipeline-core": "faucet-pipeline/faucet-pipeline-core#35c3",
"faucet-pipeline-sass": "faucet-pipeline/faucet-pipeline-sass#35c3",
"faucet-pipeline-nunjucks": "faucet-pipeline/faucet-pipeline-nunjucks"
},
"devDependencies": {
"live-server": "^1.2.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment