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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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.template, compiledPage);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-unit",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A vite plugin to enable you build websites in units using alpine.js",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",