Commit 1f9681b8 by lirandong

merge develop

parents fa424882 349fa2ff
......@@ -9,6 +9,14 @@ const config = {
},
sourceRoot: 'src',
outputRoot: 'dist',
alias: {
'@/': path.resolve(__dirname, '..', 'src'),
'@api/': path.resolve(__dirname, '..', 'src/api'),
'@pages/': path.resolve(__dirname, '..', 'src/pages'),
'@actions/': path.resolve(__dirname, '..', 'src/actions'),
'@constants/': path.resolve(__dirname, '..', 'src/constants'),
'@conpoments/': path.resolve(__dirname, '..', 'src/conpoments'),
},
plugins: {
babel: {
sourceMap: true,
......
import { ComponentClass } from 'react'
import TempItem from './temp_item'
import Taro, { Component, Config } from '@tarojs/taro'
import PageView from '../../../constants/components/pageView'
import PageView from '@/constants/components/pageView'
import { View, Text, Input, ScrollView, Image } from '@tarojs/components'
import './less/index.less'
import api from '../../../api'
import token from '../../../constants/token'
import api from '@/api'
import token from '@/constants/token'
type PageStateProps = {}
......
......@@ -13,13 +13,21 @@
"noUnusedParameters": true,
"strictNullChecks": true,
"sourceMap": true,
"baseUrl": ".",
"baseUrl": "./src",
"rootDir": ".",
"jsx": "preserve",
"jsxFactory": "Taro.createElement",
"allowJs": true,
"resolveJsonModule": true,
"typeRoots": ["node_modules/@types"]
"typeRoots": ["node_modules/@types"],
"paths": {
"@/*": ["*"],
"@api/*": ["api/*"],
"@pages/*": ["pages/*"],
"@actions/*": ["actions/*"],
"@constants/*": ["constants/*"],
"@conpoments/*": ["conpoments/*"]
}
},
"exclude": ["node_modules", "dist"],
"compileOnSave": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment