Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Add absolute path support #38

Closed
wants to merge 4 commits into from
Closed

Conversation

mattshin
Copy link

@mattshin mattshin commented Jul 7, 2017

Allows for the use of absolute paths for 'filename', in the case that the worker needs to be build to a separate location (Increased clarity vs using ../../).

Credit goes entirely to @yyx990803 for writing this originally for html-webpack-plugin.

This also solves #20

@@ -78,7 +78,7 @@ folder if you need a full working example.
- `entry`, **required**, *string*:
Path to the actual service worker implementation.
- `filename`, *string*, default `'sw.js'`:
Relative (from the webpack's config `output.path`) output path for emitted script.
Absolute or relative (from the webpack's config `output.path`) output path for emitted script.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be able to add a testcase for this?

@woutervanvliet
Copy link
Collaborator

These changes, including the testcase, are currently included on the next branch.

@mattshin
Copy link
Author

I had forgotten about this! Thank you and my apologies for abandoning the PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants