Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Hi. It is possible to use with webpack-dev-server hooks? #104

Open
7iomka opened this issue Nov 29, 2019 · 1 comment
Open

Hi. It is possible to use with webpack-dev-server hooks? #104

7iomka opened this issue Nov 29, 2019 · 1 comment

Comments

@7iomka
Copy link

7iomka commented Nov 29, 2019

Hi. It is possible to use with webpack-dev-server hooks?
I'm using vue-cli, and it use some options to config dev-server of webpack.
How I know, it uses express under hood.
So, if I try to run code below, server is not starting.
References:
https://webpack.js.org/configuration/dev-server/#devserverbefore

 const dysonOptions = {
        configDir: path.resolve(__dirname, './mocks'),
      };
      // install dyson service in a express app
      const dysonConfigs = dyson.getConfigurations(dysonOptions);
      dyson.registerServices(app, dysonOptions, dysonConfigs);
@webpro
Copy link
Owner

webpro commented Sep 23, 2021

If there's a reproducible test case, I could look into it. And "server is not starting" is not very descriptive, what exactly is the issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants