File tree Expand file tree Collapse file tree 3 files changed +29
-11
lines changed Expand file tree Collapse file tree 3 files changed +29
-11
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,25 @@ BootstrapVue and PortalVue require access to the global `Vue` reference (via
214
214
</p >
215
215
</div >
216
216
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 ` **
218
236
219
237
``` js
220
238
module .exports = {
Original file line number Diff line number Diff line change 125
125
"core-js" : " ^3.6.5" ,
126
126
"cross-env" : " ^7.0.2" ,
127
127
"eslint" : " ^7.11.0" ,
128
- "eslint-config-prettier" : " ^6.13 .0" ,
128
+ "eslint-config-prettier" : " ^6.14 .0" ,
129
129
"eslint-config-standard" : " ^14.1.1" ,
130
130
"eslint-config-vue" : " ^2.0.2" ,
131
131
"eslint-plugin-import" : " ^2.22.1" ,
146
146
"lint-staged" : " ^10.4.2" ,
147
147
"loader-utils" : " ^2.0.0" ,
148
148
"lodash" : " ^4.17.20" ,
149
- "marked" : " ^1.2.0 " ,
149
+ "marked" : " ^1.2.2 " ,
150
150
"node-sass" : " ^4.14.1" ,
151
151
"nuxt" : " ^2.14.7" ,
152
152
"postcss" : " ^8.1.2" ,
Original file line number Diff line number Diff line change @@ -5518,10 +5518,10 @@ escodegen@^1.14.1:
5518
5518
optionalDependencies:
5519
5519
source-map "~0.6.1"
5520
5520
5521
- eslint-config-prettier@^6.13 .0:
5522
- version "6.13 .0"
5523
- resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.13 .0.tgz#207d88796b5624e5bb815bbbdfc5891ceb9ebffa "
5524
- integrity sha512-LcT0i0LSmnzqK2t764pyIt7kKH2AuuqKRTtJTdddWxOiUja9HdG5GXBVF2gmCTvVYWVsTu8J2MhJLVGRh+pj8w ==
5521
+ eslint-config-prettier@^6.14 .0:
5522
+ version "6.14 .0"
5523
+ resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.14 .0.tgz#390e7863a8ae99970981933826476169285b3a27 "
5524
+ integrity sha512-DbVwh0qZhAC7CNDWcq8cBdK6FcVHiMTKmCypOPWeZkp9hJ8xYwTaWSa6bb6cjfi8KOeJy0e9a8Izxyx+O4+gCQ ==
5525
5525
dependencies:
5526
5526
get-stdin "^6.0.0"
5527
5527
@@ -9067,10 +9067,10 @@ markdown-escapes@^1.0.0:
9067
9067
resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.4.tgz#c95415ef451499d7602b91095f3c8e8975f78535"
9068
9068
integrity sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==
9069
9069
9070
-
7034
span>marked@^1.2.0 :
9071
- version "1.2.0 "
9072
- resolved "https://registry.yarnpkg.com/marked/-/marked-1.2.0 .tgz#7221ce2395fa6cf6d722e6f2871a32d3513c85ca "
9073
- integrity sha512-tiRxakgbNPBr301ihe/785NntvYyhxlqcL3YaC8CaxJQh7kiaEtrN9B/eK2I2943Yjkh5gw25chYFDQhOMCwMA ==
9070
+ marked@^1.2.2 :
9071
+ version "1.2.2 "
9072
+ resolved "https://registry.yarnpkg.com/marked/-/marked-1.2.2 .tgz#5d77ffb789c4cb0ae828bfe76250f7140b123f70 "
9073
+ integrity sha512-5jjKHVl/FPo0Z6ocP3zYhKiJLzkwJAw4CZoLjv57FkvbUuwOX4LIBBGGcXjAY6ATcd1q9B8UTj5T9Umauj0QYQ ==
9074
9074
9075
9075
md5.js@^1.3.4:
9076
9076
version "1.3.5"
You can’t perform that action at this time.
0 commit comments