Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mgreiling@gitlab.com>2017-08-07 10:47:29 +0300
committerPhil Hughes <me@iamphill.com>2017-08-07 10:47:29 +0300
commitd93527805569e9462b5f142d807b14eaaf179876 (patch)
tree74b0fa57a1674a494e2639ebe81385a8e996dbfa /config
parent4b3011e1c20077470ce946d703d98259f88ef268 (diff)
Fix issues with pdf-js dependencies
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 8b0c64f9289..1205b90de40 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -110,9 +110,12 @@ var config = {
options: { limit: 2048 },
},
{
- test: /\.(worker\.js|pdf|bmpr)$/,
+ test: /\.(worker(\.min)?\.js|pdf|bmpr)$/,
exclude: /node_modules/,
loader: 'file-loader',
+ options: {
+ name: '[name].[hash].[ext]',
+ }
},
{
test: /locale\/\w+\/(.*)\.js$/,