@lexho111/plainblog 0.5.2 → 0.5.3

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/README.md +17 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -50,6 +50,23 @@ blog.stylesheetPath = "path/to/my/styles.css";
50
50
  blog.startServer(8080);
51
51
  ```
52
52
 
53
+ ### use sass compiled stylesheets
54
+
55
+ ```
56
+ import * as sass from "sass";
57
+ import fs from "node:fs";
58
+
59
+ const compiled = sass.compile( "stylesheets/styles.scss");
60
+ fs.writeFile("stylesheets_compiled/styles.css", compiled.css, (err) => {
61
+ if (err) console.error(err);
62
+ });
63
+ const blog = new Blog();
64
+ blog.stylesheetPath = "stylesheets_compiled/styles.css";
65
+ blog.title = "My Blog";
66
+ await blog.init();
67
+ blog.startServer(8080);
68
+ ```
69
+
53
70
  print your blog articles in markdown
54
71
 
55
72
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexho111/plainblog",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "A tool for creating and serving a minimalist, single-page blog.",
5
5
  "main": "index.js",
6
6
  "type": "module",