https://github.com/sqlwwx/reload-latest-webpack-plugin
https://github.com/sqlwwx/reload-latest-webpack-plugin
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sqlwwx/reload-latest-webpack-plugin
- Owner: sqlwwx
- Created: 2016-11-18T09:24:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T06:11:08.000Z (about 9 years ago)
- Last Synced: 2025-04-19T16:34:08.090Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reload-latest-webpack-plugin
## Installation
```
npm install reload-latest-webpack-plugin
```
## Usage
```
var ReloadLatestHash = require('reload-latest-webpack-plugin');
var webpackConfig = {
plugins: [new ReloadLatestHash()]
};
```
```
Webpack App
window.hash = '<%= webpack.hash %>'
var script = document.createElement('SCRIPT')
script.setAttribute('src', '/reload-latest-hash.js?version=' + (Date.now() + '').substr(0, 7))
document.head.insertBefore(script,document.head.firstChild);
```