Обработка css webpack. Верстка главного блока

This commit is contained in:
grinikita
2025-04-11 00:17:50 +03:00
parent 21d8e8289f
commit 520ad38f8d
10 changed files with 597 additions and 8 deletions
+9 -3
View File
@@ -16,10 +16,17 @@ module.exports = {
rules: [
{ test: /\.(ts|tsx)$/, loader: "ts-loader" },
{
test: /\.hbs$/,
test: /\.hbs|html$/,
loader: 'handlebars-loader',
},
]
{
test: /\.css$/i,
use: [
{ loader: "style-loader" },
{ loader: "css-loader" },
],
},
],
},
plugins: [
new HtmlWebpackPlugin({
@@ -36,7 +43,6 @@ module.exports = {
}),
new CopyPlugin({
patterns: [
{from: "./src/style.css", to: "style.css"},
{from: "./src/images", to: "images"},
],
})