grunt-hotbox-deploy
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -64,3 +64,3 @@ var gitInfo = require('./gitInfo'); | ||
grunt.log.subhead('Make replacements in static'); | ||
grunt.log.subhead('Make replacements in js'); | ||
@@ -103,2 +103,20 @@ var filesToReplace; | ||
grunt.log.subhead('Make replacements in css'); | ||
filesToReplace = grunt.file.expandMapping(['**/*.css'], '/', { | ||
expand: true, | ||
cwd: path.join(options.dest, STATIC_PATH) | ||
}); | ||
filesToReplace.forEach(function(file) { | ||
file = file.src[0]; | ||
var content = grunt.file.read(file); | ||
content = content.replace(options.stylesRegexp, '$1' + HTTP_PREFIX + VERSIONED_STATIC_PATH + '$2'); | ||
grunt.file.write(file, content); | ||
grunt.log.writeln('Replaced paths in ' + file); | ||
}); | ||
grunt.config.set('aws_s3.hotbox_deploy_static', { | ||
@@ -105,0 +123,0 @@ options: { |
{ | ||
"name": "grunt-hotbox-deploy", | ||
"description": "Grunt task for deploying front-end bundles to Hotbox", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "e.dydykin@corp.mail.ru", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -23,2 +23,3 @@ /* | ||
templatesRegexp: /((?:src|href|content|srcset)=['"]|url\(['"]?|\s\dx,\s)\/static(\/.+?['"]?)/g, | ||
stylesRegexp: /((?:url)\(['"]?)\/static(\/\S+?['"]?\))/g, | ||
endoint: 'hb.bizmrg.com', | ||
@@ -25,0 +26,0 @@ bucket: '', |
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
21859
419