(path)
| 35 | |
| 36 | const productFallbackPlugin = { |
| 37 | read(path) { |
| 38 | if (!fs.existsSync(path)) { |
| 39 | const other = path.replace(/pug$/, `${productSuffix}.pug`); |
| 40 | if (fs.existsSync(other)) { |
| 41 | return load.read(other); |
| 42 | } |
| 43 | } |
| 44 | return load.read(path); |
| 45 | } |
| 46 | }; |
| 47 | |
| 48 | const compile = function(contents, locals, filename, cb) { |