module.exports = {
// Root directory
root: "./src",
// Directories that do not need to be analyzed
ignore: ["/node_modules/", "/dist/"],
// Order of preference when parsing files without extensions
// extensions: [".js", ".ts", ".tsx", ".vue", ".json", ".jsx"],
// Path mapping of the project's alias
alias: {
"@src/": "src/",
"@common/": "src/common/",
"@components/": "src/components/",
"@typings/": "src/typings/",
"@wzTaroUtils": "src/common/utils/taro/index",
"@path/": "path/",
"@hooks/": "src/hooks/",
"@models/": "src/models/",
"@api/": "src/models/api/",
"@globalDataStore/": "src/globalDataStore/",
"@skeleton/": "src/skeleton/",
"@baidu/weirwood-mp-sdk/": "node_modules/@baidu/weirwood-mp-sdk/lib/"
},
// Server and port related information
server: {
port: 8088,
host: "localhost",
openBrowser: true, // Automatically open in browser after startup
},
};
module.exports = { // Root directory root: "./src", // Directories that do not need to be analyzed ignore: ["/node_modules/", "/dist/"], // Order of preference when parsing files without extensions // extensions: [".js", ".ts", ".tsx", ".vue", ".json", ".jsx"], // Path mapping of the project's alias alias: { "@src/": "src/", "@common/": "src/common/", "@components/": "src/components/", "@typings/": "src/typings/", "@wzTaroUtils": "src/common/utils/taro/index", "@path/": "path/", "@hooks/": "src/hooks/", "@models/": "src/models/", "@api/": "src/models/api/", "@globalDataStore/": "src/globalDataStore/", "@skeleton/": "src/skeleton/", "@baidu/weirwood-mp-sdk/": "node_modules/@baidu/weirwood-mp-sdk/lib/" }, // Server and port related information server: { port: 8088, host: "localhost", openBrowser: true, // Automatically open in browser after startup }, };