From 29895823d7981a7a6ae99498d4e53c4e593158af Mon Sep 17 00:00:00 2001
From: Xiao Gui <xgui3783@gmail.com>
Date: Wed, 26 Jun 2019 16:29:19 +0200
Subject: [PATCH] fix: bundled material theme indigo-pink.css

---
 src/atlasViewer/atlasViewer.component.ts | 1 +
 src/index.html                           | 2 +-
 webpack.staticassets.js                  | 9 +++++++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/atlasViewer/atlasViewer.component.ts b/src/atlasViewer/atlasViewer.component.ts
index 825e873c8..4742ee05d 100644
--- a/src/atlasViewer/atlasViewer.component.ts
+++ b/src/atlasViewer/atlasViewer.component.ts
@@ -12,6 +12,7 @@ import { ModalUnit } from "./modalUnit/modalUnit.component";
 import { AtlasViewerURLService } from "./atlasViewer.urlService.service";
 import { AtlasViewerAPIServices } from "./atlasViewer.apiService.service";
 
+import '@angular/material/prebuilt-themes/indigo-pink.css'
 import '../res/css/extra_styles.css'
 import { NehubaContainer } from "../ui/nehubaContainer/nehubaContainer.component";
 import { colorAnimation } from "./atlasViewer.animation"
diff --git a/src/index.html b/src/index.html
index 3cd64e66e..467e979f0 100644
--- a/src/index.html
+++ b/src/index.html
@@ -8,7 +8,7 @@
   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
   <link rel = "stylesheet" href = "extra_styles.css">
   <link rel = "stylesheet" href = "plugin_styles.css">
-  <link rel = "stylesheet" href = "../node_modules/@angular/material/prebuilt-themes/indigo-pink.css">
+  <link rel = "stylesheet" href = "indigo-pink.css">
 
   <title>Interactive Atlas Viewer</title>
 </head>
diff --git a/webpack.staticassets.js b/webpack.staticassets.js
index 6523e83f2..cad3e8a0d 100644
--- a/webpack.staticassets.js
+++ b/webpack.staticassets.js
@@ -36,6 +36,15 @@ module.exports = {
             context : 'src'
           }
         }]
+      },
+      {
+        test: /indigo-pink\.css/,
+        use: {
+          loader: 'file-loader',
+          options: {
+            name: '[name].[ext]'
+          }
+        }
       }
     ]
   },
-- 
GitLab