diff options
author | Sam Rose <sam@gitlab.com> | 2017-04-03 14:39:50 -0400 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2017-04-05 11:22:12 -0400 |
commit | dad30d6bbf9816993bf999edcc7b1a7203a3eae5 (patch) | |
tree | a8b75a1fc2bbe22d54da02c0396ba2089ff7360b /config | |
parent | 97667b83420cf42b01836d9b0c46d904f55aae21 (diff) | |
download | gitlab-ce-dad30d6bbf9816993bf999edcc7b1a7203a3eae5.tar.gz |
Use PDFLab to render PDFs in GitLab
Diffstat (limited to 'config')
-rw-r--r-- | config/webpack.config.js | 8 |
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) { |