New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

webpack-modtime

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-modtime

Webpack plugin for changing modified time on the output files

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Keywords

webpack

FAQs

Package last updated on 05 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts