Registry / web-framework / sprockets

sprockets

JSON →
library4.2.2rbrubygemsunverified

Sprockets is a Rack-based asset packaging system that concatenates and serves JavaScript, CoffeeScript, CSS, Sass, and SCSS.

gem install sprockets
INSTALL
IMPORT
SIG · SPROCKETS
S
sprockets
web-frameworkrubyv4.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sprockets
require 'sprockets'

Initialize a Sprockets environment and serve a compiled asset

require 'sprockets' env = Sprockets::Environment.new env.append_path 'app/assets/javascripts' puts env['application.js']
Debug
Known issues
breakingSprockets 4.x removed automatic loading of some directives; you must explicitly require 'sprockets/directive_processor' if using custom directives.
fix
Add require 'sprockets/directive_processor' to your configuration.
affects: >= 4.0.0
Upgrade
Version history
4.2.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
sprockets — gem install sprockets · libregistry