https://github.com/diegohaz/webpack-assets-by-type-plugin
A webpack plugin that save assets by type
https://github.com/diegohaz/webpack-assets-by-type-plugin
assets stats webpack webpack-assets webpack-plugin
Last synced: 10 months ago
JSON representation
A webpack plugin that save assets by type
- Host: GitHub
- URL: https://github.com/diegohaz/webpack-assets-by-type-plugin
- Owner: diegohaz
- License: mit
- Created: 2017-05-01T05:12:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-15T02:24:32.000Z (almost 9 years ago)
- Last Synced: 2025-07-07T10:48:53.382Z (12 months ago)
- Topics: assets, stats, webpack, webpack-assets, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 60.5 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-assets-by-type-plugin
[](https://github.com/diegohaz/nod)
[](https://npmjs.org/package/webpack-assets-by-type-plugin)
[](https://travis-ci.org/diegohaz/webpack-assets-by-type-plugin) [](https://codecov.io/gh/diegohaz/webpack-assets-by-type-plugin/branch/master)
A webpack plugin that save assets by type (`js`,`css`)
## Install
$ npm install --save-dev webpack-assets-by-type-plugin
## Usage
```js
import AssetsByTypePlugin from 'webpack-assets-by-type-plugin'
const config = {
...
plugins: [
new AssetsByTypePlugin({
path: path.join(process.cwd(), 'assets.json') // default
})
]
}
```
Output:
```json
{"js":["vendor.js", "main.js"],"css":["styles.css"]}
```
## API
### AssetsByTypePlugin
Save assets by type (js, css)
## License
MIT © [Diego Haz](https://github.com/diegohaz)