Created
March 9, 2016 14:07
-
-
Save alanmarcos/86dd4d67a3059f27308e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
replace: { | |
start: { | |
src: ['<%= path %>/header.php', '<%= path %>/footer.php'], | |
overwrite: true, | |
replacements: [ | |
{ | |
from: '<?php bloginfo(\'template_directory\'); ?>/', | |
to: '' | |
}, | |
{ | |
from: '<?php bloginfo("template_directory"); ?>/', | |
to: '' | |
} | |
] | |
}, | |
finish: { | |
src: ['<%= path %>/header.php', '<%= path %>/footer.php'], | |
overwrite: true, | |
replacements: [ | |
{ | |
from: "=\"js/", | |
to: "=\"<?php bloginfo(\"template_directory\"); ?>/js/" | |
}, | |
{ | |
from: "='js/", | |
to: "='<?php bloginfo(\"template_directory\"); ?>/js/" | |
}, | |
{ | |
from: "=\"css/", | |
to: "=\"<?php bloginfo(\"template_directory\"); ?>/css/" | |
}, | |
{ | |
from: "='css/", | |
to: "='<?php bloginfo(\"template_directory\"); ?>/css/" | |
}, | |
{ | |
from: "=\"images/", | |
to: "=\"<?php bloginfo(\"template_directory\"); ?>/images/" | |
}, | |
{ | |
from: "='images/", | |
to: "='<?php bloginfo(\"template_directory\"); ?>/images/" | |
} | |
] | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment