Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.14 KB

File metadata and controls

48 lines (31 loc) · 1.14 KB

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