laravel-elixir-base64
Version:
A small helper to inline images as base64 for Laravel Elixir
38 lines (37 loc) • 2.39 kB
JSON
{
"name": "laravel-elixir-base64",
"version": "0.1.2",
"description": "A small helper to inline images as base64 for Laravel Elixir",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/wearejust/laravel-elixir-base64"
},
"keywords": [
"Laravel",
"Elixir",
"Base64",
"Just"
],
"author": {
"name": "Just"
},
"license": "GNU",
"bugs": {
"url": "https://github.com/wearejust/laravel-elixir-base64/issues"
},
"homepage": "https://github.com/wearejust/laravel-elixir-base64",
"dependencies": {
"gulp-inline-base64": "^0.1.4",
"gulp-rename": "^1.2.2"
},
"readme": "# Laravel Elixir Base64\nA small helper to inline images as base64 for Laravel Elixir.\n\n\n# Installation & Setup\nFirst, install laravel-elixir-base64 as a development dependency:\n\n```bash\nnpm install --save-dev laravel-elixir-base64\n```\n\nCreate a images folder in your assets folder `resources/assets/images`. The script will by default check in this folder for images that are enabled for base64 inlining in your css files. \n\nNow you are ready for using it in your gulpfile.js, add a new mixin to it like following\n\n```js\nelixir(function(mix) {\n mix.inlineBase64('app.css', 'compiled.css');\n});\n\n```\n\n# Configuration\nThis plugin offers a few configuration settings, that can be set as thirth argument The syntax is as following:\n\n```\n mix.inlineBase64(Src, Filename, Options);\n```\n\nArgument | Description\n-------- | -----------\nSrc | The css file that needs optimizing, by default it will prefix the given filename with the elixir cssOutput directory what is by default `/public/css/\nFilename | The filename where the optimized sourcefile should be written to. By default this would be named `optimized.css` and also stored at the elixir cssOutput configuration setting.\n\nThe `Options` argument is optional and contains the following settings\n\nValue | Default\n----- | -------\nbaseDir | elixir.config.assetsDir + \"images/\" (resources/assets/)\nmaxSize | 14 * 1024\ndebug | false\n",
"readmeFilename": "README.md",
"gitHead": "933d27d254ab3d236aa75fecc74fc5247a874eac",
"_id": "laravel-elixir-base64@0.1.1",
"_shasum": "de31d2231875f29eba6e26caef4519b6322ee3a6",
"_from": "laravel-elixir-base64@*"
}