From 3b4f443ef47f778cfd2d345e720444742c98acc8 Mon Sep 17 00:00:00 2001 From: Mizok Date: Mon, 18 Apr 2022 16:28:14 +0800 Subject: [PATCH] fix extension problem --- README.md | 6 +----- webpack.config.ts | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a97766a..397d78d 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,7 @@ title: webpack-template date: author: Mizok -<<<<<<< HEAD -version: 0.9.0 -======= -version: 0.9.3 ->>>>>>> 694d8e1816d745e2a5576d5c8f017ed5263ad53d +version: 0.9.1 tags: --- diff --git a/webpack.config.ts b/webpack.config.ts index 1a636a2..592e1af 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -196,6 +196,7 @@ const config = (env: any, argv: any): webpack.Configuration => { ] }, resolve: { + extensions:['.ts','.tsx','.js','.jsx','json'], alias: { '@img': resolve(__dirname, './src/assets/images/'), '@font': resolve(__dirname, './src/assets/fonts/')