Skip to content
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

Feature/public path as function #58

Merged
merged 3 commits into from
Dec 3, 2018

Conversation

IgorCRD
Copy link
Contributor

@IgorCRD IgorCRD commented Nov 22, 2018

Hello there,

Thank you for the work you guys have put into this. This package is saving us lots of time.

This PR intends to make a backward compatible API change on the publicPath argument. It would now accept publicPath to be string or a function(string): string.

This change would enable users with specific routing needs, as for example NextJs users, to apply whatever routing logic they need to the publicPath of each file. It works by using the function return as the public path for that source file.

I have seen some forks trying to achieve a similar feature with approaches that might be too centered in their own edge cases. I think this approach is more flexible and can attend more user without adding breaking changes.

@codecov-io
Copy link

codecov-io commented Nov 22, 2018

Codecov Report

Merging #58 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #58   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          81     89    +8     
=====================================
+ Hits           81     89    +8
Impacted Files Coverage Δ
src/helpers.js 100% <100%> (ø) ⬆️
src/RollbarSourceMapPlugin.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd9a028...732b71b. Read the comment docs.

@brandondoran brandondoran mentioned this pull request Nov 27, 2018
@brandondoran brandondoran merged commit 041d205 into thredup:master Dec 3, 2018
github-actions bot pushed a commit that referenced this pull request Oct 16, 2020
# [1.1.0-beta.1](v1.0.2...v1.1.0-beta.1) (2020-10-16)

### Bug Fixes

* **ci:** migrate to semantic-release ([d8ae222](d8ae222))
* **docs:** add devtool to usage example and document ([#78](#78)) ([1705a9b](1705a9b))

### Features

* **examples:** added Next.js example ([#83](#83)) ([5a6edd5](5a6edd5))
* **options:** add encodeFilename flag ([#163](#163)) ([4829ebe](4829ebe)), closes [#162](#162)
* **publicPath:** public path as function ([#58](#58)) ([041d205](041d205))
* **webpack-api:** support webpack 4 hooks API ([#53](#53)) ([cc3b747](cc3b747))
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

Successfully merging this pull request may close these issues.

3 participants