@constgen/neutrino-media-loader
v1.11.0
Published
Neutrino middleware for audio and video files
Downloads
1
Maintainers
Readme
@constgen/neutrino-media-loader
Neutrino middleware for audio and video files
Requirements
- Node.js v10+
- Neutrino v9
- Webpack v4
Installation
@constgen/neutrino-media-loader
can be installed from NPM. You should install it to "dependencies"
(--save) or "devDependncies"
(--save-dev) depending on your goal.
npm install --save @constgen/neutrino-media-loader
Usage
In preset
Require this package and plug it into Neutrino. The middleware has no options:
let mediaLoader = require('@constgen/neutrino-media-loader')
neutrino.use(mediaLoader())
In neutrinorc
The middleware also may be used together with another presets in Neutrino rc-file, e.g.:
.neutrinorc.js
let mediaLoader = require('@constgen/neutrino-media-loader')
module.exports = {
use: [
mediaLoader()
]
}