i
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user