mirror of https://github.com/webpack/webpack.git
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
|
// This file can update, because it accept itself.
|
||
|
// A dispose handler removes the old <style> element.
|
||
|
|
||
|
var addStyle = require("./addStyle");
|
||
|
|
||
|
var dispose = addStyle("body { color: blue; }");
|
||
|
|
||
|
if(module.hot) {
|
||
|
module.hot.accept();
|
||
|
module.hot.dispose(dispose);
|
||
|
}
|