Init
This commit is contained in:
commit
d17946d868
23
index.js
Normal file
23
index.js
Normal 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
11
package.json
Normal 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"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user