https://github.com/rossta/non-digest-webpack-plugin
Webpack plugin to emit both both digest and non-digest assets.
https://github.com/rossta/non-digest-webpack-plugin
Last synced: 7 months ago
JSON representation
Webpack plugin to emit both both digest and non-digest assets.
- Host: GitHub
- URL: https://github.com/rossta/non-digest-webpack-plugin
- Owner: rossta
- Created: 2018-03-05T00:29:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T16:42:48.000Z (about 8 years ago)
- Last Synced: 2025-07-25T11:34:43.330Z (10 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Non-Digest Webpack Plugin
Webpack plugin to emit both both digest and non-digest assets.
Given a webpack configuration that emits files with filenames with digests,
```javascript
module.exports = {
// ...
output: {
filename: '[name]-[chunkhash].js',
},
// ...
plugins: [
new NonDigestPlugin(),
],
}
```
this plugin is intended to emit the asset with the canonical filename as well.
```bash
Asset Size Chunks Chunk Names
app-3618228d7f2beda4fa0b.js 2.72 kB 0 [emitted] app
app.js 2.72 kB [emitted]
```
## Install
```bash
npm install --save-dev non-digest-webpack-plugin
```
## Usage
In your webpack configuration:
```javascript
const NonDigestPlugin = require('non-digest-webpack-plugin');
module.exports = {
// ...
plugins: [
new NonDigestPlugin(),
],
}
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/rossta/non-digest-webpack-plugin. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
## License
The package is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).