{"id":14982222,"url":"https://github.com/devfake/laravel-elixir-spritesmith","last_synced_at":"2026-01-11T09:44:49.045Z","repository":{"id":24814247,"uuid":"28228526","full_name":"devfake/laravel-elixir-spritesmith","owner":"devfake","description":"Spritesmith Wrapper For Laravel Elixir","archived":true,"fork":false,"pushed_at":"2016-06-20T12:38:52.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T01:04:39.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devfake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-19T12:26:22.000Z","updated_at":"2024-12-23T19:25:47.000Z","dependencies_parsed_at":"2022-07-24T03:02:13.959Z","dependency_job_id":null,"html_url":"https://github.com/devfake/laravel-elixir-spritesmith","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Flaravel-elixir-spritesmith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Flaravel-elixir-spritesmith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Flaravel-elixir-spritesmith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Flaravel-elixir-spritesmith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devfake","download_url":"https://codeload.github.com/devfake/laravel-elixir-spritesmith/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238817387,"owners_count":19535519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T14:04:58.805Z","updated_at":"2025-10-29T11:31:17.880Z","avatar_url":"https://github.com/devfake.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Elixir Spritesmith\n\nThis is a simple [Spritesmith](https://github.com/twolfson/gulp.spritesmith) wrapper for [Laravel Elixir](https://github.com/laravel/elixir).\n\n## Install\n\nInstall this package over npm.\n\n```sh\nnpm install laravel-elixir-spritesmith --save-dev\n```\n\nRequire it in your `gulpfile.js` and use it.\n\n```javascript\nvar elixir = require('laravel-elixir');\n\nrequire('laravel-elixir-spritesmith');\n\nelixir(function(mix) {\n\n  mix.spritesmith();\n\n});\n```\n\n## How To\n\nIf you run `mix.spritesmith()` without parameters, it looks for all PNG-Files in `resources/assets/img/sprites` (folders included).\n\nThe output of the `sprite.css` file is in `resources/assets/css`. The output of your `sprite.png` is in `public/assets/img`. \n\nThese are the default paths, they can be overwritten by `elixir.config.assetsPath` and `elixir.config.css.outputFolder` or by pass options. See the [config](https://github.com/laravel/elixir/blob/master/src/Config.js) file from elixir for more options.\n\n## Options\n\n```javascript\nmix.spritesmith('src', {options});\n```\n\n##### Change Source\n\n```javascript\nmix.spritesmith('resources/assets/images');\n```\n\n##### Change Output\n\n```javascript\nmix.spritesmith(null, {\n  imgOutput: 'public/images',\n  cssOutput: 'public/styles'\n});\n```\n\nBy default, you can use your sprite images with the class `sprite-{itemname}`. Change them with `cssOpt`.\n\n```javascript\nmix.spritesmith(null, {\n  cssVarMap: function (sprite) {\n    sprite.name = 'MY-SPRITE-' + sprite.name;\n  }\n}\n```\n\nAnd you can use all other options from [Spritesmith](https://github.com/twolfson/gulp.spritesmith).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevfake%2Flaravel-elixir-spritesmith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevfake%2Flaravel-elixir-spritesmith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevfake%2Flaravel-elixir-spritesmith/lists"}