UNPKG

webradio-metadata

Version:

API scraping recipes to get metadata of radio streams

22 lines (20 loc) 458 B
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: './index.js', output: { path: path.resolve(__dirname, 'build/'), filename: 'webradio-metadata.js', library: 'WebradioMetadata', libraryTarget: 'umd', }, plugins: [ new webpack.ContextReplacementPlugin(/file-stream-rotator$/, ctx => { for (const x of ctx.dependencies) { x.critical = false; } }) ], target: 'node', mode: 'production' };