# webpack-modtime

> Webpack plugin for changing modified time on the output files

Latest version **0.0.2** (published 2018-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-modtime
pnpm add webpack-modtime
yarn add webpack-modtime
bun add webpack-modtime
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-05-05 |
| First published | 2018-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nguyen Van Nhu |
| Maintainers | vanng822 |
| Keywords | webpack, touch, plugin |

## Links

- npm: https://www.npmjs.com/package/webpack-modtime
- Repository: https://github.com/vanng822/webpack-modtime
- Issues: https://github.com/vanng822/webpack-modtime/issues
- npm.io page: https://npm.io/package/webpack-modtime

## Dependencies (1)

- [touch](https://npm.io/package/touch.md) 3.1.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-05-05
- 0.0.1 — 2018-02-07

## 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

---
_Source: https://npm.io/package/webpack-modtime · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
