parsec-gulp-rev-collector
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -124,2 +124,5 @@ 'use strict'; | ||
changes.forEach(function (r) { | ||
//Replace .css and .js in HTML with .min.css and .min.js | ||
src = src.replace(/css\/([\w\/]+)\.css/g, 'css/$1.min.css').replace(/js\/([\w\/]+)\.js/g, 'js/$1.min.js'); | ||
//Add a version number to a file name that has been modified | ||
src = src.replace(r.regexp, r.replacement); | ||
@@ -126,0 +129,0 @@ }); |
{ | ||
"name": "parsec-gulp-rev-collector", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Static asset revision data collector from manifests, generated from different streams, and replace their links in html template.", | ||
@@ -11,3 +11,3 @@ "license": "MIT", | ||
"author": { | ||
"name": "Yanghc", | ||
"name": "Yanghc ", | ||
"email": "hqwlkj@outlook.com" | ||
@@ -14,0 +14,0 @@ }, |
@@ -1,4 +0,1 @@ | ||
[![Build Status](https://travis-ci.org/hqwlkj/parsec-gulp-rev-collector.svg)](https://travis-ci.org/hqwlkj/parsec-parsec-gulp-rev-collector) | ||
[![Dependencies](https://david-dm.org/hqwlkj/parsec-gulp-rev-collector.svg)](https://david-dm.org/hqwlkj/parsec-gulp-rev-collector) | ||
[![devDependencies](https://david-dm.org/hqwlkj/parsec-gulp-rev-collector/dev-status.svg)](https://david-dm.org/hqwlkj/parsec-gulp-rev-collector#info=devDependencies&view=table) | ||
[![NPM version](https://badge.fury.io/js/parsec-gulp-rev-collector.svg)](http://badge.fury.io/js/parsec-gulp-rev-collector) | ||
@@ -5,0 +2,0 @@ |
Sorry, the diff of this file is not supported yet
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
124
10009
96