feat: update project configuration and structure
- Updated project.config.json with new project name and settings. - Removed unused app.scss and index.scss files, replaced with CSS files. - Refactored app.ts to utilize Taro's useLaunch hook for app initialization. - Simplified index.tsx to display a basic greeting and user info button. - Added new project.xhs.json for XHS platform configuration. - Introduced is-xhs utility function to check for XHS environment. - Updated tsconfig.json to include path mappings and additional include paths.
This commit is contained in:
@@ -1,24 +1,11 @@
|
||||
// babel-preset-taro 更多选项和默认值:
|
||||
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
|
||||
// https://docs.taro.zone/docs/next/babel-config
|
||||
module.exports = {
|
||||
presets: [
|
||||
['taro',
|
||||
{
|
||||
framework: 'react',
|
||||
ts: 'true',
|
||||
compiler: 'vite',
|
||||
}]
|
||||
],
|
||||
plugins: [
|
||||
[
|
||||
"import",
|
||||
{
|
||||
"libraryName": "@nutui/nutui-react-taro",
|
||||
"libraryDirectory": "dist/esm",
|
||||
"style": 'css',
|
||||
"camel2DashComponentName": false
|
||||
},
|
||||
'nutui-react-taro'
|
||||
]
|
||||
['taro', {
|
||||
framework: 'react',
|
||||
ts: true,
|
||||
compiler: 'webpack5',
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user