Skip to content

Warning when manifest key prefix starts with "/" #105

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

Merged
merged 2 commits into from
Sep 13, 2017

Conversation

weaverryan
Copy link
Member

@weaverryan weaverryan commented Jul 21, 2017

Encore.setManifestKeyPrefix('/public/');

This is allowed, and will still be allowed. But after this PR, you will get a warning.

This is to help people from "tripping up" and accidentally changing their manifest key prefix from public/ to /public/ when calling setManifestKeyPrefix(). I thought this might cause issues, and it did in #96 - #96 (comment)

Cheers!

@weaverryan weaverryan force-pushed the tighter-manifest-key-prefix branch from d67f0ab to 38516d0 Compare July 21, 2017 01:06
@weaverryan weaverryan changed the title Enforcing that the manifest keys NEVER start with "/" Warning when manifest key prefix starts with "/" Aug 10, 2017
@weaverryan weaverryan force-pushed the tighter-manifest-key-prefix branch from 1ac0df2 to baa70b1 Compare August 10, 2017 01:35
@weaverryan weaverryan merged commit 6a241d9 into symfony:master Sep 13, 2017
@weaverryan weaverryan deleted the tighter-manifest-key-prefix branch September 13, 2017 18:51
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.

1 participant