Skip to content

Commit

Permalink
fix: vue-cli-plugin-h-uni-build defineConfig 导入 bug
Browse files Browse the repository at this point in the history
vue-cli-plugin-h-uni-build defineConfig 导入 bug
  • Loading branch information
hewx815 committed Aug 31, 2023
1 parent 8b90016 commit 8915ac3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion for-vue2/src/packages/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { default as Hhttp } from './Hhttp/Hhttp';
export { default as cssConverter } from './cssConverter/cssConverter';
export { default as defineConfigHuniBuild } from 'vue-cli-plugin-h-uni-build/defineConfig';
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = {
::: tip 获得语法提示
您可以从`h-uni/dist/for-vue2`中导入`defineConfigHuniBuild`以获得良好的配置体验
```javascript
const { defineConfigHuniBuild } = require('h-uni/dist/for-vue2');
const defineConfigHuniBuild = require('vue-cli-plugin-h-uni-build');
// vue.config.js
module.exports = {
pluginOptions: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = (config) => config;
export default function (config) { return config; }

0 comments on commit 8915ac3

Please sign in to comment.