let userWantsToSearch = true
module.exports = { stopHandler, userWantsToSearch };
let { userWantsToSearch } = require("./stopHandler");
userWantsToSearch = false
new HtmlWebpackPlugin({
template: path.resolve(__dirname, "src", "index.html"),
// Передача путей к изображениям для вставки в HTML
images: {
logo: path.resolve(__dirname, "src", "assets", "logo.png"),
banner: path.resolve(__dirname, "src", "assets", "banner.jpg"),
},
}),
<body>
<img src="<%= htmlWebpackPlugin.options.images.logo %>" alt="Logo">
<img src="<%= htmlWebpackPlugin.options.images.banner %>" alt="Banner">
</body>
entry: {
main: "./scripts/script.js",
},
output: {
path: path.resolve(__dirname, "dist"),
filename: "main.js",
publicPath: "/",
},
<div className={styles.props.info.sliderClass}>
<ul class="menu">
<li>Sound 1</li>
<li>Sound 2</li>
<li>Sound 3</li>
<li class="active">Sound 4</li>
<li>Sound 5</li>
</ul>