Neutrino middleware for audio and video files
- Node.js v10+
- Neutrino v9
- Webpack v4
@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
Require this package and plug it into Neutrino. The middleware has no options:
let mediaLoader = require('@constgen/neutrino-media-loader')
neutrino.use(mediaLoader())
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()
]
}