We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The plugin does not set desired headers for audio/video files.
Expected Headers:
Accept-Ranges: bytes Content-Length: 489468 Content-Range: bytes 0-489467/489468 Content-Type: audio/mpeg
Received Headers:
Connection: keep-alive Content-Type: audio/mpeg Date: Wed, 22 Jan 2020 10:46:48 GMT Transfer-Encoding: chunked
The text was updated successfully, but these errors were encountered:
Do you mind reviewing #42?
You could also consider using https://www.npmjs.com/package/rollup-plugin-serve-range
Sorry, something went wrong.
I found a solution by using serve-handler.
// custom serve plugin import handler from 'serve-handler'; import http from 'http' function serve(options = { contentBase: '', port: 1234 }) { const server = http.createServer((request, response) => { return handler(request, response, { public: options.contentBase }); }); server.listen(options.port); server.on('error', (e) => { console.error(e); }); return { name: 'serve' }; } // rollup.config.js export default { input: 'src/index.ts', plugins: [ typescript(), commonjs(), serve({ contentBase: 'test/', }), livereload(), ], output: { file: 'test/dist/bundle.js', format: 'umd', name: 'bundleName', }, };
No branches or pull requests
The plugin does not set desired headers for audio/video files.
Expected Headers:
Received Headers:
The text was updated successfully, but these errors were encountered: