webpack-assets-by-type-plugin

A webpack plugin that save assets by type (js, css)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
webpack-assets-by-type-plugin
510.1.06 years ago6 years agoMinified + gzip package size for webpack-assets-by-type-plugin in KB

Readme

webpack-assets-by-type-plugin
Generated with nod NPM version Build Status Coverage Status
A webpack plugin that save assets by type (js,css)

Install

$ npm install --save-dev webpack-assets-by-type-plugin

Usage

import AssetsByTypePlugin from 'webpack-assets-by-type-plugin'

const config = {
  ...
  plugins: [
    new AssetsByTypePlugin({
      path: path.join(process.cwd(), 'assets.json') // default
    })
  ]
}

Output:
{"js":["vendor.js", "main.js"],"css":["styles.css"]}

API

AssetsByTypePlugin

Save assets by type (js, css)

License

MIT © Diego Haz