sysgears / spinjs

SpinJS is now Zen! The project has been renamed and moved to Larix Framework.
https://github.com/sysgears/larix/tree/master/packages/zen
MIT License
43 stars 8 forks source link

adding webpack-dev-server configuration for public url #16

Open veeramarni opened 6 years ago

veeramarni commented 6 years ago

We trying to test by placing public Client URL so that we would able to get the development page on a public URL instead of default localhost. Based on the following configuration:

https://github.com/webpack/webpack-dev-server/blob/3c1ff11c1ce4ec8d990ca0b9dc1460cd906f986f/examples/cli/public-protocol/webpack.config.js#L12

I have tried by entering these value here

  devServer: {
    host: '0.0.0.0',
    public: 'https://testwebsite.xxxxx.com',
    disableHostCheck: true
  }

https://github.com/sysgears/spinjs/blob/ba8a348d7967c7c40c58893de9fb8a8ddbad7194/src/executor.ts#L464

We able to open the url, but we see the socket still trying to connect localhost. image

image

Even tried setting the browser url here, but no luck. https://github.com/sysgears/spinjs/blob/ba8a348d7967c7c40c58893de9fb8a8ddbad7194/src/plugins/WebpackPlugin.ts#L428