Browse Source

added viewer favicon

Alexander Rose 5 years ago
parent
commit
5d626d291b
4 changed files with 3 additions and 1 deletions
  1. BIN
      src/apps/viewer/favicon.ico
  2. 1 0
      src/apps/viewer/index.html
  3. 1 0
      src/apps/viewer/index.ts
  4. 1 1
      webpack.config.js

BIN
src/apps/viewer/favicon.ico


+ 1 - 0
src/apps/viewer/index.html

@@ -3,6 +3,7 @@
     <head>
         <meta charset="utf-8" />
         <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+        <link rel="icon" href="./favicon.ico" type="image/x-icon">
         <title>Mol* Viewer</title>
         <style>
             * {

+ 1 - 0
src/apps/viewer/index.ts

@@ -7,6 +7,7 @@
 
 import { createPlugin, DefaultPluginSpec } from '../../mol-plugin';
 import './index.html'
+import './favicon.ico'
 import { PluginContext } from '../../mol-plugin/context';
 import { PluginCommands } from '../../mol-plugin/command';
 import { PluginSpec } from '../../mol-plugin/spec';

+ 1 - 1
webpack.config.js

@@ -8,7 +8,7 @@ const sharedConfig = {
     module: {
         rules: [
             {
-                test: /\.(woff2?|ttf|otf|eot|svg|html)$/,
+                test: /\.(woff2?|ttf|otf|eot|svg|html|ico)$/,
                 use: [{
                     loader: 'file-loader',
                     options: { name: '[name].[ext]' }