From 894a2f31b62034d1bee658158d3f3d3bbed6c1d8 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 29 Mar 2018 15:35:36 +0800 Subject: [PATCH] refactor: remove unnecessary if due to templatepath must be html --- lib/builder/webpack/utils/lodash-loader.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/builder/webpack/utils/lodash-loader.js b/lib/builder/webpack/utils/lodash-loader.js index 5c0e2f8f35..d574732f9e 100644 --- a/lib/builder/webpack/utils/lodash-loader.js +++ b/lib/builder/webpack/utils/lodash-loader.js @@ -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