# webpack-spec-plugin

> Log a spec list of all output assets with webpack

Latest version **0.0.2** (published 2016-12-02) · 0 weekly downloads

## Install

```sh
npm install webpack-spec-plugin
pnpm add webpack-spec-plugin
yarn add webpack-spec-plugin
bun add webpack-spec-plugin
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-12-02 |
| First published | 2016-12-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | fritx |

## Links

- npm: https://www.npmjs.com/package/webpack-spec-plugin
- Repository: https://github.com/fritx/webpack-spec-plugin
- Homepage: https://github.com/fritx/webpack-spec-plugin#readme
- Issues: https://github.com/fritx/webpack-spec-plugin/issues
- npm.io page: https://npm.io/package/webpack-spec-plugin

## Recent versions

- 0.0.2 (latest) — 2016-12-02
- 0.0.1 — 2016-12-02
- 0.0.0 — 2016-12-01

## README

# webpack-spec-plugin

Log a spec list of all output assets with webpack

Inspired by [alexpalombaro/webpack-logger-plugin#1](https://github.com/alexpalombaro/webpack-logger-plugin/issues/1)

#### webpack.prod.spec

```plain
Version: webpack 1.13.1
Output: dist
Hash: 5c3864c862a79fac9dab
--------------------
static/img/cssgram-logo.eed37d7.svg  10.4 kB
static/js/manifest.acbd20bf0464f0a7c01f.js  832 bytes
static/js/app.f554e6d5495e6148bd79.js  10.6 kB
static/js/vendor.f6e704ce6ba46e61b8b0.js  79.8 kB
static/css/app.8fde266f8c3553251852e2a7f0021a1f.css  11.8 kB
index.html  513 bytes
```

#### webpack.prod.conf.js

```js
const SpecPlugin = require('webpack-spec-plugin')

module.exports = {
  // ...
  plugins: [
    new webpack.DefinePlugin({
      'process.env': {
        NODE_ENV: '"production"'
      }
    }),
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
      }
    }),
    new webpack.optimize.OccurenceOrderPlugin(),
    new SpecPlugin({ append: false, filename: 'webpack.prod.spec' }),
    // ...
  ]
}
```

---
_Source: https://npm.io/package/webpack-spec-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
