@constgen/neutrino-static-files
v1.9.2
Published
Neutrino middleware for copying of static files of the project
Downloads
9
Maintainers
Readme
@constgen/neutrino-static-files
Neutrino middleware that automatically copies src/static
to the bundle
Requirements
- Node.js v10+
- Neutrino v9
- Webpack v4
Installation
@constgen/neutrino-static-files
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-static-files
Usage
In preset
Require this package and plug it into Neutrino. The middleware has no options:
let staticFiles = require('@constgen/neutrino-static-files')
neutrino.use(staticFiles())
In neutrinorc
The middleware also may be used together with another presets in Neutrino rc-file, e.g.:
.neutrinorc.js
let staticFiles = require('@constgen/neutrino-static-files')
module.exports = {
use: [
staticFiles()
]
}