{"_id":"grunt-css-url-relative","_rev":"31-2f147bbc50b9184a5b9eb26f3b3851f2","name":"grunt-css-url-relative","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.4":{"name":"grunt-css-url-relative","version":"0.0.4","keywords":["gruntplugin"],"author":{"name":"Heuri","email":"heurika@gmail.com"},"_id":"grunt-css-url-relative@0.0.4","maintainers":[{"name":"heuri","email":"heurika@gmail.com"}],"contributors":[{"url":"https://github.com/nanjingboy","name":"Tom.Huang","email":"hzlhu.dargon@gmail.com"},{"name":"superbug","email":"sunweijun1989@gmail.com"},{"name":"andersjanmyr","email":"https://github.com/andersjanmyr"}],"homepage":"https://github.com/heuri/grunt-css-url-relative","bugs":{"url":"https://github.com/heuri/grunt-css-url-relative/issues"},"dist":{"shasum":"0dc05866458fb9d327b5ebc233d3ea48f5f8a814","tarball":"https://registry.npmjs.org/grunt-css-url-relative/-/grunt-css-url-relative-0.0.4.tgz","integrity":"sha512-xL6DADJb5c0Jzi7EFXbfseklj3Nfx7sjjpV4q/WALB4OFgJ77zKuMvOtzn6MUR81hHpaEC0xt/g0DrcD/+imwQ==","signatures":[{"sig":"MEUCIQCgC2O9TAcHMNsx+7zooGYudNJuwie12RMB875RytuoyAIgHWFrscos/H/MVy057Yjei7GvQcuBHrzCcrZ0IfeRfEY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":"grunt-css-url-relative-0.0.4.tgz","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"_npmUser":{"name":"heuri","email":"heurika@gmail.com"},"licenses":[{"url":"https://github.com/heuri/grunt-css-url-relative/blob/master/LICENSE-MIT","type":"MIT"}],"_resolved":"grunt-css-url-relative-0.0.4.tgz","repository":{"url":"git://github.com/heuri/grunt-css-url-relative.git","type":"git"},"_npmVersion":"1.3.17","description":"Grunt task to replace css urls with corrected relative paths. Github fork of nanjingboy's grunt-css-url-replace https://github.com/nanjingboy/grunt-css-url-replace","directories":{},"devDependencies":{"grunt":"~0.4.2","jshint-stylish":"~0.1.5","load-grunt-tasks":"~0.3.0","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-nodeunit":"~0.3.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.0.5":{"name":"grunt-css-url-relative","version":"0.0.5","keywords":["gruntplugin","css"],"author":{"name":"Heuri","email":"heurika@gmail.com"},"_id":"grunt-css-url-relative@0.0.5","maintainers":[{"name":"heuri","email":"heurika@gmail.com"}],"contributors":[{"url":"https://github.com/nanjingboy","name":"Tom.Huang","email":"hzlhu.dargon@gmail.com"},{"name":"superbug","email":"sunweijun1989@gmail.com"},{"name":"andersjanmyr","email":"https://github.com/andersjanmyr"}],"dist":{"shasum":"dbffbdb931792c6e6446359b9c427977c46411f2","tarball":"https://registry.npmjs.org/grunt-css-url-relative/-/grunt-css-url-relative-0.0.5.tgz","integrity":"sha512-gozg5c0I7i6ZErLowXpiokb0VbEkPUxJByAE3vf6r5AhRBAcUQ3qBgoYWp88sbzzVhEYvGvMs4M9lHVqd+XNIg==","signatures":[{"sig":"MEYCIQCc+Da5/48uk67YDqbOmfN0lq3H0rftDjhQwFUkPQhA9gIhAOrCiVzjESlYloCRlGychT++zAfZgw0FRxNndiEIv/QN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":"grunt-css-url-relative-0.0.5.tgz","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"_npmUser":{"name":"heuri","email":"heurika@gmail.com"},"licenses":[{"url":"http://opensource.org/licenses/MIT","type":"MIT"}],"_resolved":"grunt-css-url-relative-0.0.5.tgz","_npmVersion":"1.3.17","description":"Grunt task to replace css urls with corrected relative paths. Github fork of nanjingboy's grunt-css-url-replace https://github.com/nanjingboy/grunt-css-url-replace","directories":{},"devDependencies":{"grunt":"~0.4.2","jshint-stylish":"~0.1.5","load-grunt-tasks":"~0.3.0","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-nodeunit":"~0.3.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.0.6":{"name":"grunt-css-url-relative","version":"0.0.6","keywords":["gruntplugin","css"],"author":{"name":"Heuri","email":"heurika@gmail.com"},"_id":"grunt-css-url-relative@0.0.6","maintainers":[{"name":"heuri","email":"heurika@gmail.com"}],"contributors":[{"url":"https://github.com/nanjingboy","name":"Tom.Huang","email":"hzlhu.dargon@gmail.com"},{"name":"superbug","email":"sunweijun1989@gmail.com"},{"name":"andersjanmyr","email":"https://github.com/andersjanmyr"}],"dist":{"shasum":"29ebd7794a146c2344989e3dd711648a5b279477","tarball":"https://registry.npmjs.org/grunt-css-url-relative/-/grunt-css-url-relative-0.0.6.tgz","integrity":"sha512-h/7dr6k0hCoZ9LWBhbvt8NcM8AAwGium3YyzsawuKSZ3IQ+t4ksklkusncGEVTmE5gR5gPtG6VialttWsyDG0w==","signatures":[{"sig":"MEYCIQC/F2mxAWHQFP99kWqDLYV3vc+2f/AZ62kOUSMR4lE+sAIhAI7J4b/MiVKNop6ED2TGLO3kLTLfzDZF0ui3oiJUvxpj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":"grunt-css-url-relative-0.0.6.tgz","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"_npmUser":{"name":"heuri","email":"heurika@gmail.com"},"licenses":[{"url":"http://opensource.org/licenses/MIT","type":"MIT"}],"_resolved":"grunt-css-url-relative-0.0.6.tgz","_npmVersion":"1.3.17","description":"Grunt task to replace css urls with corrected relative paths. Github fork of nanjingboy's grunt-css-url-replace https://github.com/nanjingboy/grunt-css-url-replace","directories":{},"devDependencies":{"grunt":"~0.4.2","jshint-stylish":"~0.1.5","load-grunt-tasks":"~0.3.0","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-nodeunit":"~0.3.0"},"peerDependencies":{"grunt":"~0.4.2"}},"0.0.8":{"name":"grunt-css-url-relative","description":"Grunt task to replace css urls with corrected relative paths. Github fork of nanjingboy's grunt-css-url-replace https://github.com/nanjingboy/grunt-css-url-replace","version":"0.0.8","author":{"name":"Heuri","email":"heurika@gmail.com"},"contributors":[{"name":"Tom.Huang","email":"hzlhu.dargon@gmail.com","url":"https://github.com/nanjingboy"},{"name":"superbug","email":"sunweijun1989@gmail.com"},{"name":"andersjanmyr","email":"https://github.com/andersjanmyr"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/MIT"}],"main":"Gruntfile.js","engines":{"node":">=8.0.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":">=0.4.2","grunt-contrib-clean":"^2.0.0 || ~0.5.0","grunt-contrib-jshint":"^3.0.0 || ~0.8.0","grunt-contrib-nodeunit":"^2.0.0 || ~0.3.0","jshint-stylish":"^2.2.1 || ~0.1.5","load-grunt-tasks":"^5.1.0 || ~0.3.0"},"peerDependencies":{"grunt":">=0.4.2"},"keywords":["gruntplugin","css"],"_id":"grunt-css-url-relative@0.0.8","gitHead":"8bcd6b532a346b20f23d4f51b405d7f9fcefe128","_nodeVersion":"18.20.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-D1JkW1GX+Y22I3BxPb4zT4k+YH9uh1kCSAtv5tlNfJBm085kSoeB72M2V5mQCp0VMJEzt87gcKkoDIthC7j13Q==","shasum":"30c3131aa11afc3f8bee035491e2e74b8bd845cc","tarball":"https://registry.npmjs.org/grunt-css-url-relative/-/grunt-css-url-relative-0.0.8.tgz","fileCount":24,"unpackedSize":19162,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDFoCRsPFTZF3HvYKTzw6RIe9lWAexaSVy9jpZ7ZqfYeAIhAN4Q4fdQ+ZcWyVUP9zmKRL30x2/BGlp9SMaCbD8FDIBP"}]},"_npmUser":{"name":"heuri","email":"heurika@gmail.com"},"directories":{},"maintainers":[{"name":"heuri","email":"heurika@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/grunt-css-url-relative_0.0.8_1738764016007_0.033467541204659446"},"_hasShrinkwrap":false}},"time":{"created":"2014-12-12T20:14:38.668Z","modified":"2025-02-05T14:00:16.400Z","0.0.1":"2014-12-12T20:14:46.875Z","0.0.2":"2014-12-12T20:24:23.281Z","0.0.4":"2014-12-12T21:12:59.452Z","0.0.5":"2014-12-13T09:28:08.230Z","0.0.6":"2014-12-14T09:30:45.260Z","0.0.7":"2025-02-05T13:52:24.959Z","0.0.8":"2025-02-05T14:00:16.235Z"},"author":{"name":"Heuri","email":"heurika@gmail.com"},"keywords":["gruntplugin","css"],"description":"Grunt task to replace css urls with corrected relative paths. Github fork of nanjingboy's grunt-css-url-replace https://github.com/nanjingboy/grunt-css-url-replace","contributors":[{"name":"Tom.Huang","email":"hzlhu.dargon@gmail.com","url":"https://github.com/nanjingboy"},{"name":"superbug","email":"sunweijun1989@gmail.com"},{"name":"andersjanmyr","email":"https://github.com/andersjanmyr"}],"maintainers":[{"name":"heuri","email":"heurika@gmail.com"}],"readme":"# grunt-css-url-relative\r\nGithub fork of nanjingboy's grunt-css-url-replace https://github.com/nanjingboy/grunt-css-url-replace\r\n\r\n> Grunt task to replace css urls with corrected relative paths. \r\n\r\n## Getting Started\r\nThis plugin requires Grunt `>=0.4.2`. Also Grunt `1.6.1` compatible.\r\n\r\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\r\n\r\n```shell\r\nnpm install grunt-css-url-relative --save-dev\r\n```\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-css-url-relative');\r\n```\r\n\r\n### Options\r\n\r\n#### options.staticRoot\r\nType: `String`\r\nDefault value: `'public'`\r\n\r\nThe root static directory in your website\r\n\r\n### Usage Examples\r\n\r\n```js\r\ngrunt.initConfig({\r\n  css_url_relative: {\r\n    styles: {\r\n      options: {\r\n        staticRoot: 'public'\r\n      },\r\n      files: {\r\n        'public/dest/build.css': ['public/css/application.css', 'public/css/users/default.css']\r\n      }\r\n    }\r\n  }\r\n});\r\n```\r\n\r\nIn this example, imagine the following folder structure and css contents:\r\n\r\n```\r\npublic\r\n├── css\r\n│   └─── application.css\r\n|   └─── users\r\n|        └─── default.css\r\n├── images\r\n|   └── baner.png\r\n|   └── avatar.png\r\n├── dest\r\n|   └── build.css\r\n```\r\n\r\n#### css/application.css\r\n```css\r\n  .baner{background-image:url(\"../images/baner.png\");}\r\n  .baner{background-image:url(\"../images/baner.png#test\");}\r\n  .http { background-image: url(\"http://somehost.com/image.png\"); }\r\n  .https_urls { background-image: url(\"https://somehost.com/image.png\"); }\r\n```\r\n\r\n#### css/users/default.css\r\n```css\r\n  .avatar{background-image:url(\"../../images/avatar.png\");}\r\n  .avatar{background-image:url(\"../../images/avatar.png?name=test\");}\r\n  .data_urls { background-image: url('data:image/png:base64,0'); }\r\n  .backslashes_urls { background-image: url('\\images\\e.png') }\r\n```\r\n\r\n#### the generated file dest/build.css is would be:\r\n```css\r\n  .baner{background-image:url(\"../images/baner.png\");}\r\n  .baner{background-image:url(\"../images/baner.png#test\");}\r\n  .http { background-image: url(\"http://somehost.com/image.png\"); }\r\n  .https_urls { background-image: url(\"https://somehost.com/image.png\"); }\r\n  .avatar{background-image:url(\"../images/avatar.png\");}\r\n  .avatar{background-image:url(\"../images/avatar.png?name=test\");}\r\n  .data_urls { background-image: url(\"data:image/png:base64,0\"); }\r\n  .backslashes_urls { background-image: url(\"/images/e.png\") }\r\n```\r\n\r\n## Fork of grunt-css-url-replace\r\n* [nanjingboy](https://github.com/nanjingboy)\r\n\r\n## Contributors of grunt-css-url-replace\r\n* [superbug](https://github.com/superbug)\r\n* [Nehle](https://github.com/Nehle)\r\n\r\n## License\r\n* [MIT](http://opensource.org/licenses/MIT)\r\n","readmeFilename":"README.md","users":{}}