File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
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
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
220238module .exports = {
You can’t perform that action at this time.
0 commit comments