summaryrefslogtreecommitdiff
path: root/config/webpack.config.js
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-02-12 23:36:14 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-02-12 23:36:14 +0000
commit201f53e96d26d4babfc6a4492576f873219d4e6f (patch)
tree46ecbe77b909bf2b92632839f76a1b4c78122f03 /config/webpack.config.js
parentee8e5a596c3d4e18a227185965b52baf6f66c5db (diff)
parent954bfb5db557b7455e913e42be5b851d94d0a49d (diff)
downloadgitlab-ce-201f53e96d26d4babfc6a4492576f873219d4e6f.tar.gz
Merge branch 'jivl-update-katex' into 'master'
Updated katex library Closes #43032 See merge request gitlab-org/gitlab-ce!15864
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 7f3fe551a03..a4e6c64fce5 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -154,6 +154,27 @@ var config = {
}
},
{
+ test: /katex.css$/,
+ include: /node_modules\/katex\/dist/,
+ use: [
+ { loader: 'style-loader' },
+ {
+ loader: 'css-loader',
+ options: {
+ name: '[name].[hash].[ext]'
+ }
+ },
+ ],
+ },
+ {
+ test: /\.(eot|ttf|woff|woff2)$/,
+ include: /node_modules\/katex\/dist\/fonts/,
+ loader: 'file-loader',
+ options: {
+ name: '[name].[hash].[ext]',
+ }
+ },
+ {
test: /monaco-editor\/\w+\/vs\/loader\.js$/,
use: [
{ loader: 'exports-loader', options: 'l.global' },