Skip to content

Commit

Permalink
fix: remove copy of js
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Apr 17, 2021
1 parent c517b5f commit 385b62e
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const generateWebSite = async (options: generateWebSiteOptions) => {
// rename textlint.js to <id>.textlint.js;
fs.renameSync(path.join(options.outputDir, "textlint.js"), path.join(options.outputDir, "textlint.js"));
// index.{js,html}
fs.copyFileSync(path.join(templateDir, "index.js"), path.join(options.outputDir, "index.js"));
const indexHtml = fs.readFileSync(path.join(templateDir, "index.html"), "utf-8");
const filledHTML = indexHtml.replace("{{title}}", options.title).replace("{{placeholder}}", options.placeholder);
fs.writeFileSync(path.join(options.outputDir, "index.html"), filledHTML, "utf-8");
Expand Down

0 comments on commit 385b62e

Please sign in to comment.