Skip to content

Commit ccdf193

Browse files
committed
fix default
1 parent 3df531d commit ccdf193

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module.exports = function(content) {
88
var isRequireUrl = !this || !this.options || !this.options.css ||
99
typeof this.options.css.requireUrl === "string";
1010
var requireUrl = this && this.options && this.options.css &&
11-
this.options.css.requireUrl ||
12-
"file!";
11+
this.options.css.requireUrl;
12+
if(typeof requireUrl !== "string") requireUrl = "!file!";
1313
var result = [];
1414
var tree = csso.parse(content, "stylesheet");
1515
if(this && this.minimize)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-loader",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"author": "Tobias Koppers @sokra",
55
"description": "css loader module for webpack",
66
"dependencies": {

0 commit comments

Comments
 (0)