diff --git a/.vscode/settings.json b/.vscode/settings.json index 8f3288b..849ad83 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,6 +19,7 @@ "cSpell.words": [ "Initialised", "Uploader", + "describedby", "initialise", "redwoodjs" ] diff --git a/web/config/webpack.config.js b/web/config/webpack.config.js index 10c2846..d78b1f3 100644 --- a/web/config/webpack.config.js +++ b/web/config/webpack.config.js @@ -1,5 +1,12 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin') -module.exports = { - plugins: [new MonacoWebpackPlugin()], +module.exports = (config, { env }) => { + config.plugins.forEach((plugin) => { + if (plugin.constructor.name === 'HtmlWebpackPlugin') { + plugin.options.favicon = './src/favicon.svg' + } + }) + config.plugins.push(new MonacoWebpackPlugin()) + + return config } diff --git a/web/package.json b/web/package.json index e9ac1d7..7e6a2f3 100644 --- a/web/package.json +++ b/web/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "autoprefixer": "9.8.6", + "html-webpack-plugin": "^4.5.0", "postcss-loader": "4.0.2", "tailwindcss": "^1.9.1" } diff --git a/web/public/favi2.jpg b/web/public/favi2.jpg deleted file mode 100644 index 552b530..0000000 Binary files a/web/public/favi2.jpg and /dev/null differ diff --git a/web/public/favicon.png b/web/public/favicon.png deleted file mode 100644 index f0cdd00..0000000 Binary files a/web/public/favicon.png and /dev/null differ diff --git a/web/src/components/Svg/Svg.js b/web/src/components/Svg/Svg.js index 2bc5049..5d50779 100644 --- a/web/src/components/Svg/Svg.js +++ b/web/src/components/Svg/Svg.js @@ -45,6 +45,105 @@ const Svg = ({ name, className: className2, strokeWidth = 2 }) => { /> ), + favicon: ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ), fork: ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CahHub + + + diff --git a/web/src/index.html b/web/src/index.html index f9b4d50..47fb90f 100644 --- a/web/src/index.html +++ b/web/src/index.html @@ -4,9 +4,7 @@ - - <%= htmlWebpackPlugin.options.title %> - + CadHub