Completely updated React, fixed #11, (hopefully)
This commit is contained in:
11
goTorrentWebUI/node_modules/css-loader/lib/getLocalIdent.js
generated
vendored
11
goTorrentWebUI/node_modules/css-loader/lib/getLocalIdent.js
generated
vendored
@@ -6,8 +6,15 @@ var loaderUtils = require("loader-utils");
|
||||
var path = require("path");
|
||||
|
||||
module.exports = function getLocalIdent(loaderContext, localIdentName, localName, options) {
|
||||
if(!options.context)
|
||||
options.context = loaderContext.options && typeof loaderContext.options.context === "string" ? loaderContext.options.context : loaderContext.context;
|
||||
if(!options.context) {
|
||||
if (loaderContext.rootContext) {
|
||||
options.context = loaderContext.rootContext;
|
||||
} else if (loaderContext.options && typeof loaderContext.options.context === "string") {
|
||||
options.context = loaderContext.options.context;
|
||||
} else {
|
||||
options.context = loaderContext.context;
|
||||
}
|
||||
}
|
||||
var request = path.relative(options.context, loaderContext.resourcePath);
|
||||
options.content = options.hashPrefix + request + "+" + localName;
|
||||
localIdentName = localIdentName.replace(/\[local\]/gi, localName);
|
||||
|
Reference in New Issue
Block a user