4.0.3 • Published 1 year ago

rollup-plugin-reload v4.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
1 year ago

rollup-plugin-reload

a rollup plugin for server and reload

options

  • contentBase: default is process.cwd(); statically managed folders are required
  • port: default is 3000 port number
  • proxy: default is {}; such as { '/proxy': options }, the options reference https://github.com/chimurai/http-proxy-middleware#options
  • https: is enable https protocol, default is undefined, you can config as { key: 'xxx.key', cert: 'xxx.cert' }.
const { reload } = require('rollup-plugin-reload');
const path = require('path');

module.exports = {
  plugins: [reload({
    contentBase: path.resolve('debug'),
    port: 3000,
    proxy: {
      '/proxy': {
        target: 'http://api.com'
      }
    },
    https: {
      key: path.resolve(__dirname, 'xxx.key'),
      cert: path.resolve(__dirname, 'xxx.cert'),
    },
  })],
};
4.0.1

1 year ago

4.0.0

2 years ago

4.0.3

1 year ago

4.0.2

1 year ago

3.4.0

3 years ago

3.7.0

3 years ago

3.6.0

3 years ago

3.5.0

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.9.0

3 years ago

2.7.0

4 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

5 years ago