Skip to content

Commit 306751c

Browse files
author
Ramya Parimi
committed
remove inter fonts, copy-webpack-plugin
1 parent 74f54ce commit 306751c

File tree

5 files changed

+177
-278
lines changed

5 files changed

+177
-278
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ npm-debug.log
66
coverage/
77
.linkinator
88
/assets/images/early-access
9-
/assets/fonts/inter
109
/content/early-access
1110
/data/early-access
1211
.next

next.config.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33

44
const fs = require('fs')
55
const frontmatter = require('gray-matter')
6-
const CopyWebpackPlugin = require('copy-webpack-plugin')
6+
// const CopyWebpackPlugin = require('copy-webpack-plugin')
77
const path = require('path')
88
const homepage = path.posix.join(process.cwd(), 'content/index.md')
99
const { data } = frontmatter(fs.readFileSync(homepage, 'utf8'))
1010
const productIds = data.children
1111

1212
module.exports = {
13-
webpack: (config, { isServer }) => {
14-
if (isServer) {
15-
config.plugins.push(
16-
new CopyWebpackPlugin({
17-
patterns: [
18-
{
19-
from: path.join(__dirname, 'node_modules/@primer/css/fonts'),
20-
to: path.join(__dirname, 'assets/fonts/inter'),
21-
},
22-
],
23-
})
24-
)
25-
}
26-
return config
27-
},
13+
// webpack: (config, { isServer }) => {
14+
// if (isServer) {
15+
// config.plugins.push(
16+
// new CopyWebpackPlugin({
17+
// patterns: [
18+
// {
19+
// from: path.join(__dirname, 'node_modules/@primer/css/fonts'),
20+
// to: path.join(__dirname, 'assets/fonts/inter'),
21+
// },
22+
// ],
23+
// })
24+
// )
25+
// }
26+
// return config
27+
// },
2828
// speed up production `next build` by ignoring typechecking during that step of build.
2929
// type-checking still occurs in the Dockerfile build
3030
typescript: {

0 commit comments

Comments
 (0)