Skip to content

Commit

Permalink
Move back last comments css file
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Mineev authored and umputun committed Apr 21, 2022
1 parent 3f3bfaf commit bf6a08b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions frontend/.size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ module.exports = [
path: 'public/last-comments.mjs',
limit: '33 KB',
},
{
path: 'public/last-comments.css',
limit: '6 KB',
},
{
path: 'public/deleteme.mjs',
limit: '11 KB',
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/last-comments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { loadLocale } from 'utils/loadLocale';
import { getLocale } from 'utils/getLocale';
import { ListComments } from 'components/list-comments';

import 'styles/global.css';

const LAST_COMMENTS_NODE_CLASSNAME = 'remark42__last-comments';
const DEFAULT_LAST_COMMENTS_MAX = 15;

Expand Down
2 changes: 1 addition & 1 deletion frontend/templates/last-comments.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
</style>
<% if (htmlWebpackPlugin.options.env === 'production') { %>
<link rel="stylesheet" href="remark42.css" />
<link rel="stylesheet" href="last-comments.css" />
<% } %>
</head>
<body>
Expand Down

0 comments on commit bf6a08b

Please sign in to comment.