🌐 AI搜索 & 代理 主页
Skip to content

Commit b7a6ed9

Browse files
authored
Merge branch 'dev' into fix-b-link-router-href-handling
2 parents 9f7ec7c + fecd558 commit b7a6ed9

File tree

4 files changed

+224
-239
lines changed

4 files changed

+224
-239
lines changed

docs/markdown/intro/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,25 @@ BootstrapVue and PortalVue require access to the global `Vue` reference (via
214214
</p>
215215
</div>
216216

217-
**Example: Vue alias in webpack.config.js**
217+
**Example: Vue alias for [Vue CLI](https://cli.vuejs.org/) in `vue.config.js`**
218+
219+
```js
220+
const path = require('path')
221+
222+
module.exports = {
223+
chainWebpack: config => {
224+
config.resolve.alias.set(
225+
'vue$',
226+
// If using the runtime only build
227+
path.resolve(__dirname, 'node_modules/vue/dist/vue.runtime.esm.js')
228+
// Or if using full build of Vue (runtime + compiler)
229+
// path.resolve(__dirname, 'node_modules/vue/dist/vue.esm.js')
230+
)
231+
}
232+
}
233+
```
234+
235+
**Example: Vue alias in `webpack.config.js`**
218236

219237
```js
220238
module.exports = {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"core-js": "^3.6.5",
126126
"cross-env": "^7.0.2",
127127
"eslint": "^7.11.0",
128-
"eslint-config-prettier": "^6.13.0",
128+
"eslint-config-prettier": "^6.14.0",
129129
"eslint-config-standard": "^14.1.1",
130130
"eslint-config-vue": "^2.0.2",
131131
"eslint-plugin-import": "^2.22.1",
@@ -146,7 +146,7 @@
146146
"lint-staged": "^10.4.2",
147147
"loader-utils": "^2.0.0",
148148
"lodash": "^4.17.20",
149-
"marked": "^1.2.0",
149+
"marked": "^1.2.2",
150150
"node-sass": "^4.14.1",
151151
"nuxt": "^2.14.7",
152152
"postcss": "^8.1.2",

0 commit comments

Comments
 (0)