Socket
Socket
Sign inDemoInstall

css-hot-loader

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-hot-loader - npm Package Compare versions

Comparing version 1.3.8 to 1.3.9

4

History.md

@@ -0,1 +1,5 @@

### 1.3.9 2018-03-27
- fix: Webpack 4 compatibility fix by @vagusX [!39](https://github.com/shepherdwind/css-hot-loader/pull/39)
### 1.3.8 2018-03-01

@@ -2,0 +6,0 @@

3

loader.js

@@ -0,1 +1,2 @@

const path = require('path');
const loaderUtils = require('loader-utils');

@@ -16,3 +17,3 @@ const defaultOptions = {

// ${Date.now()}
var cssReload = require(${loaderUtils.stringifyRequest(this, require.resolve('./hotModuleReplacement'))})(module.id, ${JSON.stringify(options)});
var cssReload = require(${loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'hotModuleReplacement.js'))})(module.id, ${JSON.stringify(options)});
module.hot.dispose(cssReload);

@@ -19,0 +20,0 @@ module.hot.accept(undefined, cssReload);

{
"name": "css-hot-loader",
"version": "1.3.8",
"version": "1.3.9",
"description": "css hot reload work with extract-text-webpack-plugin",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,3 +18,3 @@ ### CSS Hot Loader

This is a css hot loader, which supprot hot module replacement for an extracted css file.
This is a css hot loader, which support hot module replacement for an extracted css file.

@@ -21,0 +21,0 @@ ### Why we need css hot loader

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc