8000 Using static files without hash suffixes? · Issue #96 · kaj/ructe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Using static files without hash suffixes? #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
OskarPersson opened this issue Oct 17, 2020 · 1 comment
Closed

Using static files without hash suffixes? #96

OskarPersson opened this issue Oct 17, 2020 · 1 comment

Comments

@OskarPersson
Copy link
OskarPersson commented Oct 17, 2020

How do I use static files without getting the hash suffixes? I want to create the hashes in my Webpack pipeline instead and have problems with source maps if Ructe also adds a suffix

@OskarPersson OskarPersson changed the title Static file name without hash suffix? Using static files without hash suffixes? Oct 18, 2020
@kaj
Copy link
Owner
kaj commented Oct 18, 2020

If your webpack pipeline gives you a directory of files you can add them all with StaticFiles::add_files_as(...). But maybe it should handle the case where to is empty properly.

If you want to handle each file individually, there is add_file_as, converting the releavant part ot the path to a url_name yourself.

@kaj kaj closed this as completed in 75d937c Nov 15, 2020
kaj added a commit that referenced this issue Nov 15, 2020
* Try to improve incremental compile times of projects using ructe by
  only writing fils if their contents actually changed. Also some code
  cleanup. PR #97.
* Update ructe itself to use edition 2018 (it is still useable for
  projects using both editios).  PR #98.
* Fix `StaticFiles::add_files_as` for empty `to` argument and add some
  more documentation for it.  Fixes issue #96.
* Update optional rsass dependency to 0.16.0.
* Add optional support for tide 0.14 and 0.15.
* Update gotham to 0.5 and axtix-web to 3.2 in examples.

Tested with rustc 1.47.0 (18bf6b4f0 2020-10-07),
1.42.0 (b8cedc004 2020-03-09), 1.40.0 (73528e339 2019-12-16),
1.48.0-beta.8 (121901459 2020-11-08), and
1.50.0-nightly (98d66340d 2020-11-14)
kaj added a commit that referenced this issue Nov 15, 2020
* Try to improve incremental compile times of projects using ructe by
  only writing fils if their contents actually changed. Also some code
  cleanup. PR #97.
* Update ructe itself to use edition 2018 (it is still useable for
  projects using both editios).  PR #98.
* Fix `StaticFiles::add_files_as` for empty `to` argument and add some
  more documentation for it.  Fixes issue #96.
* Update 
4BCF
optional rsass dependency to 0.16.0.
* Add optional support for tide 0.14 and 0.15.
* Update gotham to 0.5 and axtix-web to 3.2 in examples.

Tested with rustc 1.47.0 (18bf6b4f0 2020-10-07),
1.42.0 (b8cedc004 2020-03-09), 1.40.0 (73528e339 2019-12-16),
1.48.0-beta.8 (121901459 2020-11-08), and
1.50.0-nightly (98d66340d 2020-11-14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0