Method: AssetFinder::Stylesheet::Normalizer#normalize

Defined in:
lib/asset_finder/stylesheet/normalizer.rb

#normalize(path) ⇒ Object



11
12
13
14
15
16
# File 'lib/asset_finder/stylesheet/normalizer.rb', line 11

def normalize(path)
  match = path_pattern_collection.match(path: path)
  return unless match

  match[1].sub(root_dir, '') + '.css'
end