You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- can't update in real time, fix [#40](https://github.com/vbenjs/vite-plugin-mock/issues/40) ([f25c6ac](https://github.com/vbenjs/vite-plugin-mock/commit/f25c6ac8544991457368746bf6ec5fdfd8b4e083))
- fix node version ([#38](https://github.com/vbenjs/vite-plugin-mock/issues/38)) ([f91dea1](https://github.com/vbenjs/vite-plugin-mock/commit/f91dea1be943aa1145727bfecd273ef45cdff8e9))
60
+
- inappropriate type annotation ([#90](https://github.com/vbenjs/vite-plugin-mock/issues/90)) ([a3fc4aa](https://github.com/vbenjs/vite-plugin-mock/commit/a3fc4aab3dd1864f640918516c10d7d1530f5d90))
61
+
- typo, close [#42](https://github.com/vbenjs/vite-plugin-mock/issues/42) ([5b4e946](https://github.com/vbenjs/vite-plugin-mock/commit/5b4e9469060109a2a28c079eec8384fe654be68e))
-**server:** add this for response, rawResponse function ([#43](https://github.com/vbenjs/vite-plugin-mock/issues/43)) ([2f4d6d2](https://github.com/vbenjs/vite-plugin-mock/commit/2f4d6d2984c7fe15236cb8b0d2ec5479930d5668))
@@ -133,41 +127,13 @@ When automatically reading analog .ts files, ignore files in the specified forma
133
127
134
128
Set whether to monitor changes in mock .ts files
135
129
136
-
### localEnabled
137
-
138
-
**type:**`boolean`
139
-
140
-
**default:**`command === 'serve'`
141
-
142
-
Set whether to enable the local mock .ts file, do not open it in the production environment
143
-
144
-
### prodEnabled
130
+
### enable
145
131
146
132
**type:**`boolean`
147
133
148
-
**default:**`command !=='serve'`
134
+
**default:**true
149
135
150
-
Set whether to enable mock function for packaging
151
-
152
-
### injectCode
153
-
154
-
**type:**`string`
155
-
156
-
**default:**''
157
-
158
-
If the mock function is enabled in the production environment, that is, `prodEnabled=true`, the code will be injected into the bottom of the file corresponding to `injectFile`. The default is `main.{ts,js}`
159
-
160
-
The advantage of this is that you can dynamically control whether mock is enabled in the production environment and mock.js will not be packaged when it is not enabled.
161
-
162
-
If the code is written directly in `main.ts`, no matter whether it is turned on or not, the final package will include `mock.js`
0 commit comments