From 48e67973cf2f5b177f4fec5b78d52ad474c254c4 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Fri, 17 Aug 2018 16:45:47 -0500 Subject: [PATCH] rev entry --- webpack.config.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a3b2a4c11..67663afdf 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -47,18 +47,19 @@ try { versions = []; } -const entry = Object.keys(embarkAssets).reduce((obj, key) => { - embarkAssets[key] - .filter(file => file.filename.match(/\.jsx?$/)) - .forEach(file => { - let file_path = file.path; - if (!file.path.match(/^\.\//)) { - file_path = './' + file_path; - } - obj[file.path] = file_path; - }); - return obj; -}, {}); +const entry = Object.keys(embarkAssets) + .filter(key => key.match(/\.js?$/)) + .reduce((obj, key) => { + obj[key] = embarkAssets[key] + .map(file => { + let file_path = file.path; + if (!file.path.match(/^\.\//)) { + file_path = './' + file_path; + } + return file_path; + }); + return obj; + }, {}); // base config // -----------------------------------------------------------------------------