Skip to content

Commit

Permalink
add favicon in _document Page
Browse files Browse the repository at this point in the history
  • Loading branch information
hhoomph committed Aug 9, 2019
1 parent 82c3611 commit 4618845
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .nowignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
README.md
.next
.env
.build
.gitignore
./build
node_modules
./node_modules
yarn.lock
2 changes: 1 addition & 1 deletion components/CategoryMenu/CategoryMenu.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Fragment, useState, useEffect, memo } from 'react';
import '../../scss/components/CategoryMenu.scss';
import Link from '../Link';
import Category from './Category';
import { ReactComponent as LeftSvg } from '../../static/svg/left-arrow.svg';
import '../../scss/components/CategoryMenu.scss';
const CategoryMenu = () => {
return (
<div className="container-fluid overflow-hidden rtl pt-3 category_menu">
Expand Down
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ module.exports = withPlugins([withSass, withSize], {
}
);
config.plugins.push(new OptimizeCSSAssetsPlugin({}));
// Fixes npm packages that depend on `fs` module
config.node = {
fs: 'empty'
};
return config;
}
});
1 change: 1 addition & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class MyDocument extends Document {
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="description" content="App created for test development" />
<link rel="shortcut icon" href="../static/favicon.ico" />
</Head>
<body>
<Main />
Expand Down
8 changes: 2 additions & 6 deletions pages/category.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import React, { Fragment } from 'react';
import React from 'react';
import '../scss/style.scss';
import dynamic from 'next/dynamic';
import fetch from 'isomorphic-unfetch';
import CategoryMenu from '../components/CategoryMenu/CategoryMenu';
function Page() {
return (
<>
<CategoryMenu />
</>
);
return <CategoryMenu />;
}
export default Page;
Binary file modified static/favicon.ico
Binary file not shown.

0 comments on commit 4618845

Please sign in to comment.