diff options
author | Sam Rose <sam@gitlab.com> | 2017-04-03 14:39:50 -0400 |
---|---|---|
committer | Sam Rose <sam@gitlab.com> | 2017-04-05 07:31:56 -0400 |
commit | f5728db29ba4d6f88b8bddd8e00784f2146e8e35 (patch) | |
tree | eba910cf7aa96e839078929eafb7e4ec8b3a35df /config/webpack.config.js | |
parent | 2faf955c241ce7e99111f8fd0cae2e7ab6167e5a (diff) | |
download | gitlab-ce-render-pdfs-in-gitlab.tar.gz |
Use PDFLab to render PDFs in GitLabrender-pdfs-in-gitlab
Diffstat (limited to 'config/webpack.config.js')
-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 70d98b022c1..2cfafd9fd15 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -38,6 +38,7 @@ var config = { monitoring: './monitoring/monitoring_bundle.js', network: './network/network_bundle.js', notebook_viewer: './blob/notebook_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) { |