2012-04-07 05:06:57 +04:00
|
|
|
/*
|
|
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
|
|
Author Tobias Koppers @sokra
|
|
|
|
*/
|
|
|
|
var path = require("path");
|
|
|
|
module.exports = function(content) {
|
|
|
|
var loaderSign = this.request.indexOf("!");
|
|
|
|
var rawCss = this.request.substr(loaderSign); // including leading "!"
|
2012-04-07 05:15:47 +04:00
|
|
|
if(this.web)
|
|
|
|
return "require(" + JSON.stringify(path.join(__dirname, "addStyle")) + ")"+
|
|
|
|
"(require(" + JSON.stringify(rawCss) + "))";
|
|
|
|
return "";
|
2012-04-07 05:06:57 +04:00
|
|
|
}
|