Convert to a media loader
Opened this issue · 2 comments
goatandsheep commented
Instead of including javascript loaders, focus on file loading
ChrisCates commented
- First add
file-loader
yarn add file-loader
- Update webpack with
file-loader
support.
module.exports = {
entry: '.index.js',
output: {
filename: 'bundle.js',
path: __dirname
},
module: {
rules: [
{
test: /\.(png|mov|gif)$/i, // or whatever file type you want
use: [
{
loader: 'file-loader',
},
],
},
],
},
}
goatandsheep commented
No need
- convert it to a class library
- add a key-value storage for blobs
- use webtorrent inside the library
- connect to window object
- obtain info from
data-*
props
This package is currently so over-engineered, it's gross. 🤮