@constgen/neutrino-node-loader
v1.9.2
Published
Neutrino middleware for native Node modules
Downloads
4
Maintainers
Readme
@constgen/neutrino-node-loader
Neutrino middleware for loading native *.node
modules
Requirements
- Node.js v10+
- Neutrino v9
- Webpack v4
Installation
@constgen/neutrino-node-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-node-loader
Usage
In preset
Require this package and plug it into Neutrino. The middleware has no options:
let nodeLoader = require('@constgen/neutrino-node-loader')
neutrino.use(nodeLoader())
In neutrinorc
The middleware also may be used together with another presets in Neutrino rc-file, e.g.:
.neutrinorc.js
let nodeLoader = require('@constgen/neutrino-node-loader')
module.exports = {
use: [
nodeLoader()
]
}