refactor: remove unnecessary if due to templatepath must be html

This commit is contained in:
Clark Du 2018-03-29 15:35:36 +08:00
parent c4ff71438c
commit 894a2f31b6
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -6,11 +6,6 @@ module.exports = function (source) {
this.cacheable()
}
// Skip .js files
if (/\.js$/.test(this.resourcePath)) {
return source
}
// The following part renders the tempalte with lodash as aminimalistic loader
//
// Get templating options