Commit 1f9681b8 by lirandong

merge develop

parents fa424882 349fa2ff
...@@ -9,6 +9,14 @@ const config = { ...@@ -9,6 +9,14 @@ const config = {
}, },
sourceRoot: 'src', sourceRoot: 'src',
outputRoot: 'dist', 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: { plugins: {
babel: { babel: {
sourceMap: true, sourceMap: true,
......
import { ComponentClass } from 'react' import { ComponentClass } from 'react'
import TempItem from './temp_item' import TempItem from './temp_item'
import Taro, { Component, Config } from '@tarojs/taro' 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 { View, Text, Input, ScrollView, Image } from '@tarojs/components'
import './less/index.less' import './less/index.less'
import api from '../../../api' import api from '@/api'
import token from '../../../constants/token' import token from '@/constants/token'
type PageStateProps = {} type PageStateProps = {}
......
...@@ -13,13 +13,21 @@ ...@@ -13,13 +13,21 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"strictNullChecks": true, "strictNullChecks": true,
"sourceMap": true, "sourceMap": true,
"baseUrl": ".", "baseUrl": "./src",
"rootDir": ".", "rootDir": ".",
"jsx": "preserve", "jsx": "preserve",
"jsxFactory": "Taro.createElement", "jsxFactory": "Taro.createElement",
"allowJs": true, "allowJs": true,
"resolveJsonModule": 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"], "exclude": ["node_modules", "dist"],
"compileOnSave": false, "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