From 622958f9dedc53e651f31e82093dbc529e29377c Mon Sep 17 00:00:00 2001 From: Gaurav Tiwari Date: Fri, 14 Dec 2018 20:04:03 +0000 Subject: [PATCH] Enclose in a paran --- package/rules/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/rules/file.js b/package/rules/file.js index 48341328c..917349260 100644 --- a/package/rules/file.js +++ b/package/rules/file.js @@ -2,7 +2,7 @@ const { join } = require('path') const { source_path: sourcePath, static_assets_extensions: fileExtensions } = require('../config') module.exports = { - test: new RegExp(fileExtensions.join('|'), 'i'), + test: new RegExp(`(${fileExtensions.join('|')})`, 'i'), use: [ { loader: 'file-loader',