forked from admin/deShanXiao
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| be115e282c |
22
backEnd/webpack.config.ts
Normal file
22
backEnd/webpack.config.ts
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import path from "path";
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
entry: "./index.ts",
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.ts$/,
|
||||||
|
use: "ts-loader",
|
||||||
|
exclude: /node_modules/,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
resolve: {
|
||||||
|
extensions: [".ts", ".js"],
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
filename: "index.js",
|
||||||
|
path: path.resolve(__dirname, "dist"),
|
||||||
|
},
|
||||||
|
target: "node",
|
||||||
|
};
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
import { defineConfig } from "vite";
|
|
||||||
import vue from "@vitejs/plugin-vue";
|
|
||||||
import { join } from "path";
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
export default defineConfig({
|
|
||||||
plugins: [vue()],
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
"@": join(__dirname, "/src"),
|
|
||||||
},
|
|
||||||
extensions: [".js", ".vue"],
|
|
||||||
},
|
|
||||||
server: {
|
|
||||||
host: true,
|
|
||||||
},
|
|
||||||
css: {
|
|
||||||
preprocessorOptions: {
|
|
||||||
scss: {
|
|
||||||
api: "modern",
|
|
||||||
silenceDeprecations: ["legacy-js-api"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user