Ignore

Please note that your browser is not supported.

We recommend upgrading to the latest Firefox or Google Chrome.

Configuration: Assets

Pakyow provides the following application config options for assets:

  • assets.cache: If true, cache headers will be set on responses to asset requests. Default: false; true in production

  • assets.fingerprint: If true, assets will be fingerprinted based on their contents. Default: false; true in production

  • assets.minify: If true, assets that support minification will be minified. Default: false; true in production

  • assets.process: If true, assets will be processed at request time. Default: true; false in production

  • assets.public: If true, any file found in public_path will be served. Default: true

  • assets.silent: If true, asset requests will not be logged. Default: true; false in production

  • assets.prefix: Root path that assets are requested from. Default: "/assets"

  • assets.public_path: Where to serve public. Default: "{root}/public"

  • assets.compile_path: Where assets will be compiled to. Default: "{root}/public"

  • assets.path: Where to find assets. Default: "{presenter.path}/assets"

  • assets.types: All of the supported asset types. Default: { av: [".webm", ".snd", ".au", ".aiff", ".mp3", ".mp2", ".m2a", ".m3a", ".ogx", ".gg", ".oga", ".midi", ".mid", ".avi", ".wav", ".wave", ".mp4", ".m4v", ".acc", ".m4a", ".flac"], data: [".json", ".xml", ".yml", ".yaml"], fonts: [".eot", ".otf", ".ttf", ".woff", ".woff2"], images: [".ico", ".bmp", ".gif", ".webp", ".png", ".jpg", ".jpeg", ".tiff", ".tif", ".svg"], scripts: [".js"], styles: [".css", ".sass", ".scss"] }

Asset Packs

Pakyow provides the following application config options for asset packs:

External Assets

Pakyow provides the following application config options for external assets:

Example Usage

Asset config lives in config/application.rb:

Pakyow.app do
  configure do
    config.assets.option = value
  end
end
Next Up: Data