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.
- package/index.js +3 -4
- 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 (
|
|
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
|
|