Updates style <link>
href value with a hash to trigger a style reload
Install
npm install --save-dev restyle-loader
Usage
Examples
webpack.config.js
test: /\.css?$/ use: loader: "restyle-loader" loader: "file-loader" options: name: "[name].css?[hash:8]"
Hash is required to enable HMR
bundle.js
; // Bundle code here...
index.html
<!-- ... --> <!-- ... -->
after the loader runs it becomes
<!-- ... --> <!-- ... -->
Maintainers
Daniel Verejan |