chanjs 2.5.8 → 2.5.9

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.
@@ -18,15 +18,16 @@ import { importjs } from "../global/import.js";
18
18
  * @example
19
19
  * setTemplate(app, {
20
20
  * views: ['./views'],
21
- * NODE_ENV: 'dev'
21
+ * NODE_ENV: 'development'
22
22
  * });
23
23
  */
24
24
  export let setTemplate = (app, config) => {
25
25
  const { views, NODE_ENV } = config;
26
+ console.log("cache", NODE_ENV === "production");
26
27
  const all = [...views];
27
28
  app.set("view options", {
28
- debug: NODE_ENV === "dev",
29
- cache: true,
29
+ debug: NODE_ENV === "development",
30
+ cache: NODE_ENV === "production",
30
31
  minimize: true,
31
32
  });
32
33
  app.set("view engine", "html");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "chanjs",
4
- "version": "2.5.8",
4
+ "version": "2.5.9",
5
5
  "description": "chanjs基于express5 纯js研发的轻量级mvc框架。",
6
6
  "main": "index.js",
7
7
  "module": "index.js",