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:
authorSam Rose <sam@gitlab.com>2017-04-03 21:39:50 +0300
committerJacob Schatz <jschatz1@gmail.com>2017-04-05 18:22:12 +0300
commitdad30d6bbf9816993bf999edcc7b1a7203a3eae5 (patch)
treea8b75a1fc2bbe22d54da02c0396ba2089ff7360b /config
parent97667b83420cf42b01836d9b0c46d904f55aae21 (diff)
Use PDFLab to render PDFs in GitLab
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 99596ce2197..9b597f7a04e 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -38,6 +38,7 @@ var config = {
network: './network/network_bundle.js',
notebook_viewer: './blob/notebook_viewer.js',
sketch_viewer: './blob/sketch_viewer.js',
+ pdf_viewer: './blob/pdf_viewer.js',
profile: './profile/profile_bundle.js',
protected_branches: './protected_branches/protected_branches_bundle.js',
snippet: './snippet/snippet_bundle.js',
@@ -65,7 +66,11 @@ var config = {
{
test: /\.svg$/,
use: 'raw-loader'
- }
+ }, {
+ test: /\.(worker.js|pdf)$/,
+ exclude: /node_modules/,
+ loader: 'file-loader',
+ },
]
},
@@ -107,6 +112,7 @@ var config = {
'issuable',
'merge_conflicts',
'notebook_viewer',
+ 'pdf_viewer',
'vue_pipelines',
],
minChunks: function(module, count) {