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

fix prependTo and allow regex to be passed in #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackbrown
Copy link

Fixes an issue we are having where the filenames passed in to prependTo are the only ones that don't get the script prepended. We are code splitting, so this ends up being quite a few files.

Also added the option to pass in a RegEx. This makes it easier to target a single file when multiple files have been split from the same output filename.

For example:

const outputFilenames = ['bundle.web.js', '0.bundle.web.js', '1.bundle.web.js'];

const matches  = outputFilenames.filter(filename => filename.indexOf('bundle.web.js') > -1);
// [ 'bundle.web.js', '0.bundle.web.js', '1.bundle.web.js' ]

@jackbrown jackbrown force-pushed the master branch 2 times, most recently from 0608e84 to 1751116 Compare May 14, 2019 05:23
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