Socket
Socket
Sign inDemoInstall

@constgen/neutrino-static-files

Package Overview
Dependencies
339
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @constgen/neutrino-static-files

Neutrino middleware for copying of static files of the project


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
3.75 MB
Created
Weekly downloads
 

Readme

Source

@constgen/neutrino-static-files

npm npm

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

Keywords

FAQs

Last updated on 28 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc