From c38f6db52251608a10de23d34c4ed8b6a3de4ff5 Mon Sep 17 00:00:00 2001 From: sia Date: Mon, 25 Nov 2024 03:17:17 +0800 Subject: [PATCH] finish logic --- .gitignore | 2 +- webpack.config.js | 34 ---------------------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 webpack.config.js diff --git a/.gitignore b/.gitignore index 1bc8ebb..a537cff 100644 --- a/.gitignore +++ b/.gitignore @@ -68,7 +68,7 @@ web_modules/ # Output of 'npm pack' *.tgz - +/tmp # Yarn Integrity file .yarn-integrity diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 7460a9a..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,34 +0,0 @@ -const path = require('path'); - -module.exports = { - - entry: './src/pages/index.tsx', // 入口文件 - output: { - path: path.resolve(__dirname, 'dist'), // 输出目录 - filename: 'bundle.js', // 输出文件名 - }, - module: { - rules: [ - { test: /\.txt$/, use: 'raw-loader' }, - { test: /\.css$/, use: 'css-loader' }, - { test: /\.ts$/, use: 'ts-loader' }, - { - test: /\.tsx?$/, - use: { - loader: "babel-loader", - options: { - presets: [["@babel/preset-env", { targets: "defaults" }]], - }, - - } - - }, - ] - - }, - resolve: { - extensions: ['.tsx', '.ts', '.js'], - }, - mode: 'development', // 根据需要设置模式 -}; -