Module: ReactManifest::PathUtils
Constant Summary collapse
- STRIPPABLE_EXTENSIONS =
Matches compound and single Sprockets-understood asset extensions. Order is significant: compound forms must precede their singles.
/\.(ts\.tsx|js\.jsx|tsx|ts|jsx|js)$/
Instance Method Summary collapse
Instance Method Details
#strip_asset_extension(path) ⇒ Object
7 8 9 |
# File 'lib/react_manifest/path_utils.rb', line 7 def strip_asset_extension(path) path.to_s.sub(STRIPPABLE_EXTENSIONS, "") end |