mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
This commit is contained in:
parent
a8e3c8c7a3
commit
43af632a28
2986 changed files with 50716 additions and 116930 deletions
31
node_modules/videojs-overlay/scripts/rollup.config.js
generated
vendored
31
node_modules/videojs-overlay/scripts/rollup.config.js
generated
vendored
|
@ -2,10 +2,35 @@ const generate = require('videojs-generate-rollup-config');
|
|||
|
||||
// see https://github.com/videojs/videojs-generate-rollup-config
|
||||
// for options
|
||||
const options = {};
|
||||
const config = generate(options);
|
||||
const options = {
|
||||
input: 'src/index.js'
|
||||
};
|
||||
|
||||
// Generate the original for plugin
|
||||
const indexConfig = generate(options);
|
||||
|
||||
// Config for file that exports plugin without registering it
|
||||
const pluginOnlyConfig = {
|
||||
watch: { clearScreen: false },
|
||||
input: 'src/plugin.js',
|
||||
external: indexConfig.builds.module.external,
|
||||
output: [
|
||||
{
|
||||
file: './dist/videojs-overlay.plugin.js',
|
||||
format: 'umd',
|
||||
name: indexConfig.settings.exportName,
|
||||
banner: indexConfig.settings.banner,
|
||||
globals: { 'video.js': 'videojs', 'global/window': 'window' }
|
||||
}
|
||||
],
|
||||
plugins: indexConfig.plugins
|
||||
};
|
||||
|
||||
// Add additonal builds/customization here!
|
||||
|
||||
const configs = Object.values(indexConfig.builds);
|
||||
|
||||
configs.push(pluginOnlyConfig);
|
||||
|
||||
// export the builds to rollup
|
||||
export default Object.values(config.builds);
|
||||
export default configs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue