Сборка нескольких html страниц

This commit is contained in:
grinikita 2025-04-10 21:50:49 +03:00
parent e53ae4858d
commit f31f40ad3e
4 changed files with 16 additions and 29 deletions

View File

@ -14,18 +14,7 @@
<link rel="stylesheet" href="../dist/style.css">
</head>
<body>
<header class="header container">
<a href="../dist/index.html"><img class="logo" src="images/logo.svg" alt=""></a>
<nav>
<ul class="nav-list">
<li><a href="discover.html">Discover</a></li>
<li><a href="creators.html">creators</a></li>
<li><a href="creators.html">Sell</a></li>
<li><a href="creators.html">stats</a></li>
</ul>
</nav>
<button class="button">Connect Wallet</button>
</header>
{{> views/header }}
<main>
Creators
</main>

View File

@ -14,18 +14,7 @@
<link rel="stylesheet" href="../dist/style.css">
</head>
<body>
<header class="header container">
<a href="../dist/index.html"><img class="logo" src="images/logo.svg" alt=""></a>
<nav>
<ul class="nav-list">
<li><a href="discover.html">Discover</a></li>
<li><a href="creators.html">creators</a></li>
<li><a href="creators.html">Sell</a></li>
<li><a href="creators.html">stats</a></li>
</ul>
</nav>
<button class="button">Connect Wallet</button>
</header>
{{> views/header }}
<main>
Discover
</main>

View File

@ -2,10 +2,10 @@
<a href="index.html"><img class="logo" src="../src/images/logo.svg" alt=""></a>
<nav>
<ul class="nav-list">
<li><a href="../src/discover.html">Discover</a></li>
<li><a href="../src/creators.html">creators</a></li>
<li><a href="../src/creators.html">Sell</a></li>
<li><a href="../src/creators.html">stats</a></li>
<li><a href="./discover.html">Discover</a></li>
<li><a href="./creators.html">creators</a></li>
<li><a href="./creators.html">Sell</a></li>
<li><a href="./creators.html">stats</a></li>
</ul>
</nav>
<button class="button">Connect Wallet</button>

View File

@ -23,7 +23,16 @@ module.exports = {
},
plugins: [
new HtmlWebpackPlugin({
template: "./src/index.hbs"
template: "./src/index.hbs",
filename: "index.html"
}),
new HtmlWebpackPlugin({
template: "./src/creators.hbs",
filename: "creators.html"
}),
new HtmlWebpackPlugin({
template: "./src/discover.hbs",
filename: "discover.html"
}),
new CopyPlugin({
patterns: [