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 TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'
|
||||||
import devConfig from './dev'
|
import devConfig from './dev'
|
||||||
import prodConfig from './prod'
|
import prodConfig from './prod'
|
||||||
@@ -18,13 +18,10 @@ export default defineConfig(async (merge, {}) => {
|
|||||||
sourceRoot: 'src',
|
sourceRoot: 'src',
|
||||||
outputRoot: 'dist',
|
outputRoot: 'dist',
|
||||||
plugins: [],
|
plugins: [],
|
||||||
defineConstants: {
|
defineConstants: {},
|
||||||
},
|
|
||||||
copy: {
|
copy: {
|
||||||
patterns: [
|
patterns: [],
|
||||||
],
|
options: {}
|
||||||
options: {
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
framework: 'vue3',
|
framework: 'vue3',
|
||||||
compiler: 'webpack5',
|
compiler: 'webpack5',
|
||||||
@@ -35,9 +32,7 @@ export default defineConfig(async (merge, {}) => {
|
|||||||
postcss: {
|
postcss: {
|
||||||
pxtransform: {
|
pxtransform: {
|
||||||
enable: true,
|
enable: true,
|
||||||
config: {
|
config: {}
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
enable: true,
|
enable: true,
|
||||||
@@ -58,10 +53,10 @@ export default defineConfig(async (merge, {}) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
h5: {
|
h5: {
|
||||||
publicPath: '/',
|
publicPath: '/public/',
|
||||||
staticDirectory: 'static',
|
staticDirectory: 'static',
|
||||||
router: {
|
router: {
|
||||||
mode: 'browser'
|
mode: 'hash'
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: 'js/[name].[hash:8].js',
|
filename: 'js/[name].[hash:8].js',
|
||||||
@@ -93,7 +88,7 @@ export default defineConfig(async (merge, {}) => {
|
|||||||
appName: 'taroDemo',
|
appName: 'taroDemo',
|
||||||
postcss: {
|
postcss: {
|
||||||
cssModules: {
|
cssModules: {
|
||||||
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
|
enable: false // 默认为 false,如需使用 css modules 功能,则设为 true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
59
package.json
59
package.json
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "newGameHome",
|
"name": "test",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "",
|
"description": "",
|
||||||
@@ -37,51 +37,48 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.22.11",
|
"@babel/runtime": "^7.22.11",
|
||||||
"@tarojs/components": "3.6.11",
|
"@tarojs/components": "3.6.15",
|
||||||
"@tarojs/helper": "3.6.11",
|
"@tarojs/helper": "3.6.15",
|
||||||
"@tarojs/plugin-framework-vue3": "3.6.11",
|
"@tarojs/plugin-framework-vue3": "3.6.15",
|
||||||
"@tarojs/plugin-platform-alipay": "3.6.11",
|
"@tarojs/plugin-platform-alipay": "3.6.15",
|
||||||
"@tarojs/plugin-platform-h5": "3.6.11",
|
"@tarojs/plugin-platform-h5": "3.6.15",
|
||||||
"@tarojs/plugin-platform-jd": "3.6.11",
|
"@tarojs/plugin-platform-jd": "3.6.15",
|
||||||
"@tarojs/plugin-platform-qq": "3.6.11",
|
"@tarojs/plugin-platform-qq": "3.6.15",
|
||||||
"@tarojs/plugin-platform-swan": "3.6.11",
|
"@tarojs/plugin-platform-swan": "3.6.15",
|
||||||
"@tarojs/plugin-platform-tt": "3.6.11",
|
"@tarojs/plugin-platform-tt": "3.6.15",
|
||||||
"@tarojs/plugin-platform-weapp": "3.6.11",
|
"@tarojs/plugin-platform-weapp": "3.6.15",
|
||||||
"@tarojs/runtime": "3.6.11",
|
"@tarojs/runtime": "3.6.15",
|
||||||
"@tarojs/shared": "3.6.11",
|
"@tarojs/shared": "3.6.15",
|
||||||
"@tarojs/taro": "3.6.11",
|
"@tarojs/taro": "3.6.15",
|
||||||
"vue": "^3.3.4"
|
"vue": "^3.3.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.22.11",
|
"@babel/core": "^7.22.11",
|
||||||
"@tarojs/cli": "3.6.11",
|
"@tarojs/cli": "3.6.15",
|
||||||
"@tarojs/taro-loader": "3.6.11",
|
"@tarojs/taro-loader": "3.6.15",
|
||||||
"@tarojs/test-utils-vue3": "^0.1.1",
|
"@tarojs/test-utils-vue3": "^0.1.1",
|
||||||
"@tarojs/webpack5-runner": "3.6.11",
|
"@tarojs/webpack5-runner": "3.6.15",
|
||||||
"@types/jest": "^29.5.4",
|
"@types/jest": "^29.5.4",
|
||||||
"@types/node": "^18.17.12",
|
"@types/node": "^20.5.7",
|
||||||
"@types/webpack-env": "^1.18.1",
|
"@types/webpack-env": "^1.18.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
||||||
"@typescript-eslint/parser": "^5.62.0",
|
"@typescript-eslint/parser": "^6.5.0",
|
||||||
"@unocss/webpack": "^0.55.3",
|
|
||||||
"@vue/babel-plugin-jsx": "^1.1.5",
|
"@vue/babel-plugin-jsx": "^1.1.5",
|
||||||
"@vue/compiler-sfc": "^3.3.4",
|
"@vue/compiler-sfc": "^3.3.4",
|
||||||
"babel-preset-taro": "3.6.11",
|
"babel-preset-taro": "3.6.15",
|
||||||
"css-loader": "3.4.2",
|
"css-loader": "6.8.1",
|
||||||
"eslint": "^8.48.0",
|
"eslint": "^8.48.0",
|
||||||
"eslint-config-taro": "3.6.11",
|
"eslint-config-taro": "3.6.15",
|
||||||
"eslint-plugin-vue": "^8.7.1",
|
"eslint-plugin-vue": "^9.17.0",
|
||||||
"jest": "^29.6.4",
|
"jest": "^29.6.4",
|
||||||
"jest-environment-jsdom": "^29.6.4",
|
"jest-environment-jsdom": "^29.6.4",
|
||||||
"postcss": "^8.4.29",
|
"postcss": "^8.4.29",
|
||||||
"style-loader": "1.3.0",
|
"style-loader": "3.3.3",
|
||||||
"stylelint": "^14.16.1",
|
"stylelint": "^15.10.3",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^5.2.2",
|
||||||
"unocss": "^0.55.3",
|
|
||||||
"unocss-preset-weapp": "^0.55.2",
|
|
||||||
"vue-loader": "^17.2.2",
|
"vue-loader": "^17.2.2",
|
||||||
"webpack": "5.78.0"
|
"webpack": "5.88.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
17614
pnpm-lock.yaml
generated
17614
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -10,5 +10,6 @@ export default defineAppConfig({
|
|||||||
navigationBarBackgroundColor: '#fff',
|
navigationBarBackgroundColor: '#fff',
|
||||||
navigationBarTitleText: 'Game',
|
navigationBarTitleText: 'Game',
|
||||||
navigationBarTextStyle: 'black'
|
navigationBarTextStyle: 'black'
|
||||||
}
|
},
|
||||||
|
// animation: false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user