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

Require Webpack config only when used #1334

Merged
merged 1 commit into from
Aug 22, 2018
Merged

Require Webpack config only when used #1334

merged 1 commit into from
Aug 22, 2018

Conversation

jbruni
Copy link
Contributor

@jbruni jbruni commented Aug 22, 2018

What?

Detailed description has been written and discussed at issue bigcommerce/stencil-cli#379

This change helps to prevent that issue to happen, because the time to be ready for receiving messages from stencil-cli is dramatically reduced.

Tickets / Documentation

Copy link
Contributor

@junedkazi junedkazi left a comment

Choose a reason for hiding this comment

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

Overall it LGTM.

stencil.conf.js Outdated
@@ -26,6 +22,9 @@ var watchOptions = {
* Watch any custom files and trigger a rebuild
*/
function development() {
var webpack = require('webpack');
Copy link
Contributor

Choose a reason for hiding this comment

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

@jbruni can we just move the var webpack = require('webpack'); outside so we don't have to specify it for each env.

@junedkazi
Copy link
Contributor

@jbruni can you also add a changelog entry please.

@jbruni jbruni changed the title Require Webpack and its config only when used Require Webpack config only when used Aug 22, 2018
@jbruni
Copy link
Contributor Author

jbruni commented Aug 22, 2018

@junedkazi - Requested changes have been done. 👍

@junedkazi junedkazi merged commit f3434e5 into bigcommerce:master Aug 22, 2018
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.

None yet

2 participants