@constgen/neutrino-media-loader

1.11.0 • Public • Published

@constgen/neutrino-media-loader

npm npm

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()
   ]
}

Dependents (0)

Package Sidebar

Install

npm i @constgen/neutrino-media-loader

Weekly Downloads

0

Version

1.11.0

License

GPL-3.0

Unpacked Size

38.1 kB

Total Files

4

Last publish

Collaborators

  • constgen