webpack-assets-by-type-plugin

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i webpack-assets-by-type-plugin

Weekly Downloads

13

Version

0.1.0

License

MIT

Last publish

Collaborators

  • diegohaz