pug-slides-loader
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,1 +0,1 @@ | ||
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=2)}([function(e,r){e.exports=require("path")},function(e,r){e.exports=require("fs")},function(e,r,t){"use strict";t.r(r);var n=t(0),o=t.n(n),u=t(1),i=t.n(u);r.default=function(e){let r=e;const t=this.async(),n=this.query.from;if(!n)throw Error("You need to specify slides root folder! Eg.: ./src/slides/");i.a.readdir(n,(u,i)=>{const l=e.match(/(import.*from.*;)(?!.*\1)/g),f=l&&l[l.length-1]||null;let c=f&&f+"\n"||"",a="";i.forEach((e,r)=>{/slide.*\.pug$/.test(e)&&(c+=`import revealSlide${r} from '${o.a.resolve(n,e)}';\n`,a+="${revealSlide"+r+"}\n")}),r=f?r.replace(f,c):c+r,r=r.replace("\x3c!--inject:slides--\x3e",a),t(null,r)})}}]); | ||
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){const n=t(1),o=t(2);e.exports=function(e){let r=e;const t=this.async(),i=this.query.from;if(!i)throw Error("You need to specify slides root folder! Eg.: ./src/slides/");o.readdir(i,(o,u)=>{const l=e.match(/(import.*from.*;)(?!.*\1)/g),c=l&&l[l.length-1]||null;let f=c&&c+"\n"||"",s="";u.forEach((e,r)=>{/slide.*\.pug$/.test(e)&&(f+=`import revealSlide${r} from '${n.resolve(i,e)}';\n`,s+="${revealSlide"+r+"}\n")}),r=c?r.replace(c,f):f+r,r=r.replace("\x3c!--inject:slides--\x3e",s),t(null,r)})},e.exports.raw=!0},function(e,r){e.exports=require("path")},function(e,r){e.exports=require("fs")}]); |
{ | ||
"name": "pug-slides-loader", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Simple Webpack loader for Reveal.js slides (.pug files) to fast inject them in one place", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2372