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

updated Autoupload plugin README to support Webpack 5 and fix --env vars #525

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

emptypockets-dev
Copy link
Contributor

@emptypockets-dev emptypockets-dev commented Jun 15, 2021

Description and Context

The setup for the latest version of copy-webpack-plugin requires paths to live inside of a patterns array. Documentation here: https://www.npmjs.com/package/copy-webpack-plugin

Also, passing environment vars to webpack doesn't work with the dot notation. The script should be webpack --watch --env account 123 --env autoupload. Documentation here: https://webpack.js.org/guides/environment-variables/

As a side note, the Hubspot.config.yml file always provides the account so that part isn't really needed (might be better to manage that all in one place—can the autoupload option be moved there?)

Who to Notify

@TheWebTech

Copy link
Contributor

@brandenrodgers brandenrodgers left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for updating this 👍

@drewjenkins drewjenkins merged commit 9da73e8 into HubSpot:master Aug 20, 2021
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