vite-plugin-unit 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -178,7 +178,7 @@ export default function plugin(options = {}) {
|
|
|
178
178
|
}
|
|
179
179
|
const fileContent = await readFile(filePath, { encoding: "utf-8" });
|
|
180
180
|
const compiledPage = compile(filePath, fileContent);
|
|
181
|
-
const result = template.replace(opt.
|
|
181
|
+
const result = template.replace(opt.slot, compiledPage);
|
|
182
182
|
log("build: ", page);
|
|
183
183
|
return await writeFile(join(outputDir, page.replace(ext, ".html")), result);
|
|
184
184
|
}
|