This commit is contained in:
Philipp Dieter 2024-06-22 13:07:44 +02:00
commit d17946d868
2 changed files with 34 additions and 0 deletions

23
index.js Normal file
View File

@ -0,0 +1,23 @@
module.exports = function (content) {
this.cacheable();
var callback = this.async();
let resourcePath =
'!!ejs-loader-compiled!pug-plain-loader!vue-loader!'
+ this.resourcePath
+ '?vue&type=template&id=foobar'
try {
this.importModule(
resourcePath,
{},
function(err, result) {
if (err) {
return callback(err);
}
callback(null, result());
}
);
} catch (error) {
callback(err);
}
return;
};

11
package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "ejs-pug-vue-resource-loader",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "AGPL-3.0-or-later"
}