From 831d4b08a94a97aedb0e55a726dd03c3dffb70e9 Mon Sep 17 00:00:00 2001 From: Veeck Date: Thu, 29 Mar 2018 12:02:51 +0200 Subject: [PATCH] fix: update twig support from github.com/klei/gulp-inject/pull/129 --- src/transform/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/transform/index.js b/src/transform/index.js index ecba1e2..16f944c 100644 --- a/src/transform/index.js +++ b/src/transform/index.js @@ -4,7 +4,7 @@ var extname = require('../extname'); /** * Constants */ -var TARGET_TYPES = ['html', 'html.twig', 'jade', 'pug', 'slm', 'slim', 'jsx', 'haml', 'less', 'sass', 'scss']; +var TARGET_TYPES = ['html', 'jade', 'pug', 'slm', 'slim', 'jsx', 'haml', 'less', 'sass', 'scss', 'twig']; var IMAGES = ['jpeg', 'jpg', 'png', 'gif']; var DEFAULT_TARGET = TARGET_TYPES[0]; @@ -194,6 +194,14 @@ transform.scss.sass = transform.less.less; transform.scss.scss = transform.scss.sass; transform.scss.css = transform.scss.sass; +transform.twig.css = function (filepath) { + return ''; +}; + /** * Transformations for jsx is like html * but always with self closing tags, invalid jsx otherwise