/webpack-assets-by-type-plugin

A webpack plugin that save assets by type

Primary LanguageJavaScriptMIT LicenseMIT

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