0.1.0 • Published 7 years ago

webpack-assets-by-type-plugin v0.1.0

Weekly downloads
220
License
MIT
Repository
github
Last release
7 years ago

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