style-loader
Advanced tools
Comparing version 0.8.3 to 0.9.0
@@ -13,4 +13,4 @@ /* | ||
}, | ||
isIE9 = memoize(function() { | ||
return /msie 9\b/.test(window.navigator.userAgent.toLowerCase()); | ||
isOldIE = memoize(function() { | ||
return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase()); | ||
}), | ||
@@ -29,5 +29,5 @@ getHeadElement = memoize(function () { | ||
options = options || {}; | ||
// Force single-tag solution on IE9, which has a hard limit on the # of <style> | ||
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style> | ||
// tags it will allow on a page | ||
if (typeof options.singleton === "undefined") options.singleton = isIE9(); | ||
if (typeof options.singleton === "undefined") options.singleton = isOldIE(); | ||
@@ -34,0 +34,0 @@ var styles = listToStyles(list); |
{ | ||
"name": "style-loader", | ||
"version": "0.8.3", | ||
"author": "Tobias Koppers @sokra", | ||
"description": "style loader module for webpack", | ||
"devDependencies": { | ||
"css-loader": "~0.8.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:webpack/style-loader.git" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/mit-license.php" | ||
} | ||
], | ||
"dependencies": { | ||
"loader-utils": "^0.2.5" | ||
} | ||
"name": "style-loader", | ||
"version": "0.9.0", | ||
"author": "Tobias Koppers @sokra", | ||
"description": "style loader module for webpack", | ||
"devDependencies": { | ||
"css-loader": "~0.8.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:webpack/style-loader.git" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/mit-license.php" | ||
} | ||
], | ||
"dependencies": { | ||
"loader-utils": "^0.2.5" | ||
} | ||
} |
@@ -58,4 +58,9 @@ # style loader for webpack | ||
## Install | ||
`npm install style-loader` | ||
## License | ||
MIT (http://www.opensource.org/licenses/mit-license.php) |
@@ -27,6 +27,6 @@ /* | ||
"if(module.hot) {", | ||
" refs = module.hot.data && module.hot.data.refs || 0;", | ||
" if(refs) {", | ||
" refs--;", | ||
" var lastRefs = module.hot.data && module.hot.data.refs || 0;", | ||
" if(lastRefs) {", | ||
" exports.ref();", | ||
" refs = lastRefs;", | ||
" }", | ||
@@ -33,0 +33,0 @@ " module.hot.accept();", |
12070
66