Skip to content

Commit

Permalink
feat: add ads
Browse files Browse the repository at this point in the history
  • Loading branch information
lcxfs1991 committed Feb 6, 2024
1 parent d02566b commit 5eb54cf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/Site/Site.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ function Site(props) {
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
></script>
<script
type="text/javascript"
src="https://cdn.wwads.cn/js/makemoney.js"
async
/>
</Helmet>
<div className="site__header">
<Navigation
Expand Down
5 changes: 5 additions & 0 deletions src/components/Sponsors/Sponsors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ const Sponsors = () => {
<div className="sponsors__content-cont">
翻译/文档内容有任何问题,请联系我们
</div>
<div
className="wwads-cn wwads-horizontal wwads-sticky"
data-id="306"
style={{ maxWidth: '350px' }}
></div>
</Link>
</div>
);
Expand Down
6 changes: 5 additions & 1 deletion webpack.dev.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export default (env) =>
index: './index.jsx',
},
plugins: [
new ReactRefreshWebpackPlugin(),
new ReactRefreshWebpackPlugin({
esModule: false,
exclude: [/node_modules/, /utilities/],
}),
new HTMLPlugin({
template: 'index.html',
favicon: 'favicon.ico',
Expand All @@ -44,5 +47,6 @@ export default (env) =>
hot: true,
compress: true,
historyApiFallback: true,
allowedHosts: 'all',
},
});

0 comments on commit 5eb54cf

Please sign in to comment.