mm_statics 1.6.2 → 1.6.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/index.js +3 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -714,7 +714,9 @@ Static.prototype._handleCache = async function (url, ctx) {
714
714
  * @returns {string|null} 编译后的内容
715
715
  */
716
716
  Static.prototype._handleFileCompile = async function (path) {
717
- if (!path.startsWith(this.config.path)) return null;
717
+ if (this.config.compile_md && file_type === 'md') {
718
+ return await this._runMarkdown(path);
719
+ } else if (!path.startsWith(this.config.path)) return null;
718
720
 
719
721
  let file_type = this._getType(path);
720
722
  let { compile_vue, convert_amd } = this.config;
@@ -725,9 +727,6 @@ Static.prototype._handleFileCompile = async function (path) {
725
727
  else if (compile_vue && file_type === 'vue') {
726
728
  return await this._runVue(path);
727
729
  }
728
- else if (this.config.compile_md && file_type === 'md') {
729
- return await this._runMarkdown(path);
730
- }
731
730
  return null;
732
731
  };
733
732
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_statics",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "这是超级美眉statics函数模块,用于web服务端statics缓存",
5
5
  "main": "index.js",
6
6
  "scripts": {