7 lines
209 B
JavaScript
7 lines
209 B
JavaScript
|
module.exports = function(source) {
|
||
|
if (this.resourcePath.endsWith(".ts")) {
|
||
|
this.resourcePath = this.resourcePath.replace(".ts", ".css");
|
||
|
}
|
||
|
return `module.exports = require("${this.resourcePath}");`;
|
||
|
};
|