Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add yarn serve to use as a local dev environment #100

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
Aug 23, 2020

Conversation

patrick-tolosa
Copy link
Contributor

Brief Summary of Changes

This change adds a local dev environment to the developer working on this project.
run yarn serve to start a local dev environment based off of ./playgorund/main.js

What does this PR address?

  • Github issue (Add reference - #XX)
  • Refactoring
  • New feature
  • Bug fix
  • Adds more tests

Are tests included?

  • Yes
  • No

Reviewer, Please Note:

This is PR has does not affect end-developers but adds functionality when maintaining and adding features to this project

@@ -2,7 +2,7 @@ const nodeExternals = require("webpack-node-externals");

module.exports = {
configureWebpack: config => {
if (process.env.STYLEGUIDE) {
if (process.env.INTERNAL_DEPS) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In VueJS, when building a library we externalize all of the node modules, as they're brought in as dependencies.

When developing locally, we want all INTERNAL_DEPS to be bundled, so we skip the nodeExternals() plugin.

This repurposes an old flag of the STYLEGUIDE which is no longer in use, but did the same thing

@patrick-tolosa patrick-tolosa requested a review from strausr August 20, 2020 10:36
@patrick-tolosa patrick-tolosa merged commit 8425171 into master Aug 23, 2020
@patrick-tolosa patrick-tolosa deleted the feature/add-local-dev-environment branch May 26, 2021 17:35
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.

2 participants