Commit 8a4a9a10 authored by Tim Neutkens's avatar Tim Neutkens

Match .js instead of not css

parent ff3aa3ad
...@@ -70,7 +70,7 @@ function externalsConfig (dir, isServer) { ...@@ -70,7 +70,7 @@ function externalsConfig (dir, isServer) {
return callback() return callback()
} }
if (res.match(/node_modules/) && !res.match(/.(css|sass|scss|less|svg)/)) { if (res.match(/node_modules\/.*\.js/)) {
return callback(null, `commonjs ${request}`) return callback(null, `commonjs ${request}`)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment