From a785f303f4f3f9be589d6f4eb38e15aac706c276 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Sat, 31 Mar 2018 16:08:16 +0200 Subject: [PATCH] Match externals ending in .js not everything with .js (#4091) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes sure highlight.js/styles/dark.css doesn’t get caught by externals. --- server/build/webpack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/build/webpack.js b/server/build/webpack.js index 3052e431..6d268ad1 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -79,7 +79,7 @@ function externalsConfig (dir, isServer) { return callback() } - if (res.match(/node_modules[/\\].*\.js/)) { + if (res.match(/node_modules[/\\].*\.js$/)) { return callback(null, `commonjs ${request}`) }