This commit is contained in:
2023-09-01 01:21:48 +08:00
parent 1b561212e8
commit eaae975626
4 changed files with 10148 additions and 7549 deletions

View File

@@ -1,4 +1,4 @@
import { defineConfig, type UserConfigExport } from '@tarojs/cli'
import {defineConfig, type UserConfigExport} from '@tarojs/cli'
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'
import devConfig from './dev'
import prodConfig from './prod'
@@ -18,13 +18,10 @@ export default defineConfig(async (merge, {}) => {
sourceRoot: 'src',
outputRoot: 'dist',
plugins: [],
defineConstants: {
},
defineConstants: {},
copy: {
patterns: [
],
options: {
}
patterns: [],
options: {}
},
framework: 'vue3',
compiler: 'webpack5',
@@ -35,9 +32,7 @@ export default defineConfig(async (merge, {}) => {
postcss: {
pxtransform: {
enable: true,
config: {
}
config: {}
},
url: {
enable: true,
@@ -58,10 +53,10 @@ export default defineConfig(async (merge, {}) => {
}
},
h5: {
publicPath: '/',
publicPath: '/public/',
staticDirectory: 'static',
router: {
mode: 'browser'
mode: 'hash'
},
output: {
filename: 'js/[name].[hash:8].js',
@@ -93,7 +88,7 @@ export default defineConfig(async (merge, {}) => {
appName: 'taroDemo',
postcss: {
cssModules: {
enable: false, // 默认为 false如需使用 css modules 功能,则设为 true
enable: false // 默认为 false如需使用 css modules 功能,则设为 true
}
}
}