Skip to content

Commit

Permalink
fix: update release rescript
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan committed Jun 22, 2024
1 parent dbde6ab commit 27d84e0
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
62 changes: 62 additions & 0 deletions chrome/html/error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Plugin Installation Notice</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f4f4f9;
}

.container {
text-align: center;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
max-width: 400px;
width: 100%;
}

h1 {
font-size: 24px;
color: #333;
}

p {
font-size: 16px;
color: #666;
line-height: 1.5;
}

a {
color: #007bff;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}
</style>
</head>

<body>
<div class="container">
<h1>Plugin Installation Notice</h1>
<p>
After installing the plugin, if you want to use it on pages that were already open before installation, please
refresh the page.
</p>
</div>
</body>

</html>
5 changes: 5 additions & 0 deletions webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ module.exports = {
}
),
new CopyWebpackPlugin([
{
from: resolve('chrome/html'),
to: resolve('dist'),
ignore: ['.*'],
},
{
from: resolve('chrome/js'),
to: resolve('dist'),
Expand Down

0 comments on commit 27d84e0

Please sign in to comment.