Created
April 13, 2015 18:37
-
-
Save cbourdage/aa256fcf1047ec49fae5 to your computer and use it in GitHub Desktop.
sample grunt configuration for url replacement
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
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// Build out replacements for error files | |
replace: { | |
build: { | |
options: { | |
patterns: [{ | |
match: /\.\.\/fonts\//g, | |
replacement: function () { | |
return '/skin/frontend/enterprise/PlatinumPerformance/fonts/'; | |
} | |
}, { | |
match: /\.\.\/images\/sprite/g, | |
replacement: function () { | |
return '/skin/frontend/enterprise/PlatinumPerformance/images/sprite'; | |
} | |
}] | |
}, | |
files: { | |
'errors/PlatinumPerformance/styles.css': 'errors/PlatinumPerformance/styles.css' | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment