pearofducks / rollup-plugin-dev

development server for rollup with additional logging and options
MIT License
61 stars 9 forks source link

No example for spa configuration in dirs. #17

Closed gintsgints closed 3 years ago

gintsgints commented 3 years ago

It is stated in https://github.com/pearofducks/rollup-plugin-dev/releases/tag/v2.0.0 that spa option now goes into dirs.

It is really hard to understund how exactly it should be specified and some example would be very nice.

pearofducks commented 3 years ago

I've added an example to the example dir. If things aren't clear from that example it'd be really helpful to know what is difficult to understand about the option.

gintsgints commented 3 years ago

I get that error message from this config:

      dev({
        dirs: ['public'],
        spa: 'index.html',
        port: 5000,
        proxy: [{ from: '/api', to: 'https://binsy-dev.balcia.com/binsy' }],
      }),

May be somthing else causes that message to be shown.

pearofducks commented 3 years ago

I'm guessing you mean the warning? The behavior changed when a string value is supplied as an option, so there's a warning that things have changed.

The warning will be removed sometime later this fall - I want to give people a chance to migrate first before clearing it.

gintsgints commented 3 years ago

Ok. Could be warning. Thanks for help.