Skip to content

Commit 0024d58

Browse files
Added in a favicon for the site.
1 parent b20b40b commit 0024d58

File tree

4 files changed

+1040
-52
lines changed

4 files changed

+1040
-52
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"babel-plugin-transform-class-properties": "^6.24.1",
4747
"csp-html-webpack-plugin": "^5.1.0",
4848
"css-loader": "^5.0.1",
49+
"favicons": "^6.2.0",
50+
"favicons-webpack-plugin": "^5.0.0-alpha.6",
4951
"html-webpack-plugin": "^5.0.0-beta.4",
5052
"http-server-spa": "^1.3.0",
5153
"json-schema-to-typescript": "^10.1.2",
@@ -56,7 +58,6 @@
5658
"ts-node": "^9.1.1",
5759
"typescript": "^4.1.3",
5860
"webpack": "^5.12.2",
59-
"webpack-cdn-plugin": "^3.3.1",
6061
"webpack-cli": "^4.3.1",
6162
"webpack-dev-server": "^3.11.1",
6263
"webpack-merge": "^5.7.3"

src/logo.svg

+47
Loading

webpack.common.js

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const HtmlWebpackPlugin = require('html-webpack-plugin');
22
const path = require('path');
33
const webpack = require('webpack');
4-
const WebpackCdnPlugin = require('webpack-cdn-plugin');
54
const CspHtmlWebpackPlugin = require('csp-html-webpack-plugin');
5+
const FaviconsWebpackPlugin = require('favicons-webpack-plugin')
66

77
module.exports = {
88
entry: './src/index.ts',
@@ -46,16 +46,10 @@ module.exports = {
4646
ANALYTICS_NEXT_MODERN_CONTEXT: true,
4747
NODE_ENV: 'development'
4848
}),
49-
/*new WebpackCdnPlugin({
50-
modules: [
51-
{
52-
name: '@atlaskit/css-reset',
53-
var: 'atlaskit-css-reset',
54-
style: 'dist/bundle.css',
55-
cssOnly: true
56-
}
57-
],
58-
publicPath: '/node_modules'
59-
})*/
49+
new FaviconsWebpackPlugin({
50+
logo: './src/logo.svg',
51+
publicPath: '/',
52+
prefix: 'auto/[contenthash]'
53+
})
6054
]
6155
};

0 commit comments

Comments
 (0)