https://github.com/marcelrobitaille/webpack-dbust
https://github.com/marcelrobitaille/webpack-dbust
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcelrobitaille/webpack-dbust
- Owner: MarcelRobitaille
- License: mit
- Created: 2017-01-10T02:55:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-26T22:26:31.000Z (about 8 years ago)
- Last Synced: 2025-02-15T06:47:04.290Z (over 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-dbust - A webpack plugin for [dbust](https://www.npmjs.com/package/dbust)
Saves cache-busted filenames to a json file. Deletes old cache-busted files.
## Usage
```js
const Dbust = require('webpack-dbust')
module.exports = {
entry: './source/js/main.js',
output: {
path: './public/js/',
filename: '[name]-[chunkname].js'
},
plugins: [ new Dbust(options) ],
}
```
## Options
### autosave
Specefies if `dbust.save` should be called automatically. Defaults to `false`.
### dbust
The rest of the options are passed to dbust. They can be found [here](https://www.npmjs.com/package/dbust#options).
## See also
1. [dbust](https://www.npmjs.com/package/dbust)
1. [gulp-dbust](https://www.npmjs.com/package/gulp-dbust)
## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)