A webpack plugin that save assets by type (js
,css
)
$ npm install --save-dev webpack-assets-by-type-plugin
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"]}
Save assets by type (js, css)
MIT © Diego Haz