webpack-assets-by-type-plugin
v0.1.0
Published
A webpack plugin that save assets by type (js, css)
Downloads
261
Maintainers
Keywords
Readme
webpack-assets-by-type-plugin
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