🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

non-digest-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

non-digest-webpack-plugin

Webpack plugin to emit both both digest and non-digest assets.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
223
-35.73%
Maintainers
1
Weekly downloads
 
Created
Source

Non-Digest Webpack Plugin

Webpack plugin to emit both both digest and non-digest assets.

Given a webpack configuration that emits files with filenames with digests,

module.exports = {
  // ...
  output: {
    filename: '[name]-[chunkhash].js
  },

  // ...
  plugins: [
    new NonDigestPlugin()

}

this plugin is intended to emit the asset with the canonical filename as well.

                      Asset     Size  Chunks             Chunk Names
app-3618228d7f2beda4fa0b.js  2.72 kB       0  [emitted]  app
                     app.js  2.72 kB          [emitted]

Install

npm install --save-dev non-digest-webpack-plugin

Usage

In your webpack configuration:

const NonDigestPlugin = require('non-digest-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new NonDigestPlugin()
  ]
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rossta/non-digest-webpack-plugin. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The package is available as open source under the terms of the MIT License.

FAQs

Package last updated on 05 Mar 2018

Did you know?

Socket

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