pearofducks / rollup-plugin-dev

development server for rollup with additional logging and options

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No example for spa configuration in dirs.

gintsgints opened this issue · comments

commented

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.

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.

commented

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.

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.

commented

Ok. Could be warning. Thanks for help.