@helloample/netlify-plugin-redirects
Advanced tools
Comparing version 1.1.4 to 1.2.0
23
index.js
// index.js | ||
const Parser = require("./lib/parser"); | ||
const Parser = require("./lib/parser") | ||
module.exports = { | ||
onPreBuild: async ({ utils, inputs }) => { | ||
const parser = new Parser( | ||
inputs.source, | ||
inputs.destination, | ||
inputs.defaultBranch, | ||
utils | ||
); | ||
await parser.perform(); | ||
const stats = parser.stats(); | ||
console.log(stats.summary); | ||
utils.status.show(stats); | ||
}, | ||
}; | ||
onPostBuild: async ({ utils, inputs }) => { | ||
const parser = new Parser(inputs.source, inputs.destination, inputs.defaultBranch, utils) | ||
await parser.perform() | ||
const stats = parser.stats() | ||
console.log(stats.summary) | ||
utils.status.show(stats) | ||
} | ||
} |
{ | ||
"name": "@helloample/netlify-plugin-redirects", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "Read a CSV file, parse the rows and write them to `_redirects` _before_ Netlify processes your build.", | ||
@@ -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
19739
13
432