UNPKG

grind-assets

Version:
160 lines (138 loc) 3.53 kB
{ /** Specify a built in preset for assets to use. Currently supported values are null and “react” */ "preset": null, /** Default settings for the publish command, overridable via cli options */ "publish": { /** Specify a base url to use when publishing, this should be used when assets are served via a CDN. If null, Grind will point to the assets through your app. */ "base_url": null }, /** Optimizations are turned on by default when app.debug is false and turned off by default when it’s set to true. To override this, explicity set the value below to true or false. Optimizations will vary for each content type, but examples include minifying css and optimizing SVGs */ "should_optimize": null, /** Configure the path locations for assets to use */ "paths": { /** Where assets should look for assets to compile */ "source": "resources/assets", /** Where assets should publish compiled assets to */ "publish": "public" }, /** Whether or not assets will exist in the top level If top level assets are turned on, direcotires like js, css, and will not be used when publishing assets. */ "top_level": false, /** Whether or not the browser should update when local assets are changed. Do not use in production. */ "live_reload": false, /** Whether or not source maps should be generated. Current supported options are "auto" or false. If false, no source maps are generated. If "auto", source maps will be inlined during development and saved to file.ext.map on assets:publish */ "source_maps": "auto", /** Config options for each compiler */ "compilers": { "scss": { "includePaths": [], "precision": 14 }, /** Raw files are copied/served over as-is without any compiling, however they‘re still subject to post processing. */ "raw": { /** When assets.top_level is set to false, only files within these directories will be considered */ "directories": ["js", "css", "img", "fonts", "font"], /** When assets.top_level is set to true, any files with these extensions will be considered, except for `js` unless assets.babel.allow_vanilla_js is set to true. The mime types will also be used in development mode when serving on the fly to send the correct type to the browser. */ "mimes": { "css": "text/css", "js": "application/javascript", "eot": "application/vnd.ms-fontobject", "gif": "image/gif", "ico": "image/x-icon", "jpeg": "image/jpeg", "jpg": "image/jpeg", "otf": "font/opentype", "png": "image/png", "svg": "image/svg+xml", "ttf": "application/x-font-ttf", "woff": "application/x-font-woff", "woff2": "application/font-woff2" } }, "babel": { "allow_vanilla_js": true, "browserify": { "enabled": true }, "rollup": { "enabled": false, "output": {} } } }, /** Config options for each post processor */ "post_processors": { "js": { "minify": { "compress": { "drop_console": true } } }, "css": { "minify": { "roundingPrecision": 14 }, "postcss": { "autoprefixer": true } }, "svg": { "optimize": { "plugins": [{ "removeTitle": true }] } } } }