https://github.com/vanng822/webpack-modtime
modify time on the output files
https://github.com/vanng822/webpack-modtime
Last synced: 11 months ago
JSON representation
modify time on the output files
- Host: GitHub
- URL: https://github.com/vanng822/webpack-modtime
- Owner: vanng822
- License: mit
- Created: 2018-02-07T20:01:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-05T09:27:22.000Z (about 8 years ago)
- Last Synced: 2025-06-28T08:47:01.155Z (12 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-modtime
The output is embedded as binary data in a golang application. Since every build of the output we have a new timestamp and this cause a new build of the application. To avoid this issue we make sure the output have a predictable modified time. Be aware that this should be used when output filename is a hash of the content.
# Usage
```javascript
const WebpackModTime = require('webpack-modtime');
module.exports = {
...
},
plugins: [
new WebpackModTime({time: new Date(2016, 11, 12, 12, 12, 12)})
]
}
```
The options to WebpackModTime is the same as https://www.npmjs.com/package/touch