From 65dc29a2298d1f27b871cf0e29e4e5be4d6548f6 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 17 Mar 2021 18:52:35 +0100 Subject: [PATCH] Separated image, js and css files --- tsbaseconfig.json | 1 + webpack.config.ts | 35 +++++++++++++++++++++++------------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/tsbaseconfig.json b/tsbaseconfig.json index da896b8c..b79ddcba 100644 --- a/tsbaseconfig.json +++ b/tsbaseconfig.json @@ -19,6 +19,7 @@ "webpack/ManifestPlugin.ts", "babel.config.ts", + "postcss.config.ts", "file.ts" ], "exclude": [ diff --git a/webpack.config.ts b/webpack.config.ts index bc6d4f2b..24731046 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -101,15 +101,23 @@ export const config = async (target: "web" | "client"): Promise !!e) }), new MiniCssExtractPlugin({ - filename: isDevelopment ? "[name].[contenthash].css" : "[contenthash].css", - chunkFilename: isDevelopment ? "[name].[contenthash].css" : "[contenthash].css", + filename: isDevelopment ? "css/[name].[contenthash].css" : "css/[contenthash].css", + chunkFilename: isDevelopment ? "css/[name].[contenthash].css" : "css/[contenthash].css", ignoreOrder: true, }), @@ -120,7 +128,7 @@ export const config = async (target: "web" | "client"): Promise