Files
cadhub/web/config/webpack.config.js
Kurt Hutten 4fefee073c Update logo around the website
updated the favicon with a webpack plugin, as will as on the MainLayout
Plus some other tweaks to the main layout while I was there

resolves #107
2020-11-18 07:56:09 +11:00

13 lines
337 B
JavaScript

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
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
}