diff --git a/.eslintignore b/.eslintignore
index 9b1c8b1..a49fe93 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1 +1,4 @@
-/dist
+dist/
+
+example/dist/
+example/config/**.js
diff --git a/.prettierignore b/.prettierignore
index f44447b..05d9485 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,2 +1,5 @@
CHANGELOG.md
dist/
+
+example/dist/
+example/config/**.js
diff --git a/example/.prettierignore b/example/.prettierignore
deleted file mode 100644
index 933d710..0000000
--- a/example/.prettierignore
+++ /dev/null
@@ -1,2 +0,0 @@
-dist/
-config/**.js
diff --git a/example/config/temp/index.ts b/example/config/temp/index.ts
index db8ff75..2a9915e 100644
--- a/example/config/temp/index.ts
+++ b/example/config/temp/index.ts
@@ -19,7 +19,7 @@ const config = {
},
sourceRoot: 'src',
outputRoot: 'dist',
- plugins: [],
+ plugins: ['@tarojs/plugin-html'],
defineConstants: {},
copy: {
patterns: [],
diff --git a/example/package.json b/example/package.json
index aa5440c..440e96b 100644
--- a/example/package.json
+++ b/example/package.json
@@ -36,11 +36,13 @@
"@tarojs/runtime": "3.6.6",
"@tarojs/shared": "3.6.6",
"@tarojs/taro": "3.6.6",
+ "axios-miniprogram": "workspace:*",
"vue": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.8.0",
"@tarojs/cli": "3.6.6",
+ "@tarojs/plugin-html": "^3.6.6",
"@tarojs/webpack5-runner": "3.6.6",
"@types/webpack-env": "^1.13.6",
"@vue/babel-plugin-jsx": "^1.0.6",
diff --git a/example/project.config.json b/example/project.config.json
index 0b979a3..68f4b60 100644
--- a/example/project.config.json
+++ b/example/project.config.json
@@ -3,7 +3,7 @@
"projectname": "axios-miniprogram",
"appid": "wx48e277051b32f95b",
"setting": {
- "urlCheck": true,
+ "urlCheck": false,
"es6": false,
"enhance": false,
"compileHotReLoad": false,
diff --git a/example/src/app.css b/example/src/app.css
deleted file mode 100644
index e69de29..0000000
diff --git a/example/src/app.ts b/example/src/app.ts
index fcffc7d..d4a3860 100644
--- a/example/src/app.ts
+++ b/example/src/app.ts
@@ -1,4 +1,3 @@
import { createApp } from 'vue';
-import './app.css';
export default createApp({});
diff --git a/example/src/pages/index/index.config.ts b/example/src/pages/index/index.config.ts
deleted file mode 100644
index 10e4e25..0000000
--- a/example/src/pages/index/index.config.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export default definePageConfig({
- navigationBarTitleText: '首页',
-});
diff --git a/example/src/pages/index/index.css b/example/src/pages/index/index.css
deleted file mode 100644
index e69de29..0000000
diff --git a/example/src/pages/index/index.vue b/example/src/pages/index/index.vue
index 076d695..4815399 100644
--- a/example/src/pages/index/index.vue
+++ b/example/src/pages/index/index.vue
@@ -1,16 +1,126 @@
+
+
-
- {{ msg }}
+
+
+
+
+
+
+ config:
+
+
+ response:
+
+
+ error:
+
-
+.code {
+ padding: 20px;
+ overflow-x: scroll;
+ white-space: pre;
+}
+
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2896799..bd51c93 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -87,6 +87,7 @@ importers:
'@tarojs/components': 3.6.6
'@tarojs/helper': 3.6.6
'@tarojs/plugin-framework-vue3': 3.6.6
+ '@tarojs/plugin-html': ^3.6.6
'@tarojs/plugin-platform-alipay': 3.6.6
'@tarojs/plugin-platform-h5': 3.6.6
'@tarojs/plugin-platform-jd': 3.6.6
@@ -101,6 +102,7 @@ importers:
'@types/webpack-env': ^1.13.6
'@vue/babel-plugin-jsx': ^1.0.6
'@vue/compiler-sfc': ^3.0.0
+ axios-miniprogram: workspace:*
babel-preset-taro: 3.6.6
css-loader: 3.4.2
eslint-plugin-vue: ^8.0.0
@@ -126,10 +128,12 @@ importers:
'@tarojs/runtime': 3.6.6
'@tarojs/shared': 3.6.6
'@tarojs/taro': 3.6.6_vue@3.2.47
+ axios-miniprogram: link:..
vue: 3.2.47
devDependencies:
'@babel/core': 7.21.8
'@tarojs/cli': 3.6.6_vue@3.2.47
+ '@tarojs/plugin-html': 3.6.6_vue@3.2.47
'@tarojs/webpack5-runner': 3.6.6_ccyaxh63edqyfdgniosjbfvodu
'@types/webpack-env': 1.18.0
'@vue/babel-plugin-jsx': 1.1.1_@babel+core@7.21.8
@@ -2592,6 +2596,21 @@ packages:
- supports-color
dev: false
+ /@tarojs/plugin-html/3.6.6_vue@3.2.47:
+ resolution: {integrity: sha512-mkdsum+nZbwIYxuBNYRABz664wRQogYqdAjKcnjio8J4NbtM7sBhwlugNjs6MaeA0GM0Jle6Y+biw6RkGrHklA==}
+ dependencies:
+ '@babel/parser': 7.21.8
+ '@tarojs/runtime': 3.6.6
+ '@tarojs/service': 3.6.6_vue@3.2.47
+ '@tarojs/shared': 3.6.6
+ transitivePeerDependencies:
+ - '@types/react'
+ - '@types/webpack'
+ - '@types/webpack-dev-server'
+ - supports-color
+ - vue
+ dev: true
+
/@tarojs/plugin-platform-alipay/3.6.6_vue@3.2.47:
resolution: {integrity: sha512-65SFA8Vmlwf5ZflI+jXN3W2nrh2NYM3GRAjOcZDIPE+6Je33Bi/7jNaTn3t+YwJlcVjY6djp3/dmC+xwc7skfA==}
dependencies: