File: export.rb

package info (click to toggle)
ruby-sprockets-export 1.0.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 124 kB
  • sloc: ruby: 117; sh: 4; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require "pathname"

require "sprockets"
require "sprockets/export/version"
require "sprockets/export/store"
require "sprockets/export/directive_processor"
require "sprockets/export/metadata_injector"
require "sprockets/export/bundle_processor"

module Sprockets::Export
  def self.lib_path
    @lib_path ||= Pathname.new(File.expand_path("../..", __FILE__))
  end
end


Sprockets.append_path Sprockets::Export.lib_path
Sprockets.register_postprocessor    "application/javascript", Sprockets::Export::MetadataInjector
Sprockets.register_bundle_processor "application/javascript", Sprockets::Export::BundleProcessor