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

[patch] optionalRequire archetype/config folder for component archetype #733

Merged

Conversation

didi0613
Copy link
Contributor

@didi0613 didi0613 commented Feb 26, 2018

Use optionalRequire for archetype/config folder, based on the electrode-demo-index instance.

electrode-demo-index has no demo, its a template other components use for demo. the archetype/config is not a required folder and should have a default value for it.
Errors:
screen shot 2018-02-26 at 2 33 49 pm


const archetypeApp = optionalRequire(archetypeAppPath) || {
webpack: {
cssModulesSupport: undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

cssModuleSupport .. but undefined is the same as {}

Copy link
Contributor

@datvong-wm datvong-wm left a comment

Choose a reason for hiding this comment

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

lgtm

@jchip jchip merged commit 74298d2 into electrode-io:master Mar 6, 2018
@didi0613 didi0613 deleted the optional-require-archetype/config-folder branch August 3, 2018 22:43
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