gulp-inject
Advanced tools
Comparing version 4.3.1 to 4.3.2
{ | ||
"name": "gulp-inject", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "A javascript, stylesheet and webcomponent injection plugin for Gulp, i.e. inject file references into your index.html", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ 'use strict'; | ||
*/ | ||
var TARGET_TYPES = ['html', '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']; | ||
@@ -198,2 +198,10 @@ var DEFAULT_TARGET = TARGET_TYPES[0]; | ||
transform.twig.css = function (filepath) { | ||
return '<link rel="stylesheet" href="{{ asset("' + filepath + '") }}"' + end(); | ||
}; | ||
transform.twig.js = function (filepath) { | ||
return '<script src="{{ asset("' + filepath + '") }}"></script>'; | ||
}; | ||
/** | ||
@@ -200,0 +208,0 @@ * Transformations for jsx is like html |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55500
721