File tree Expand file tree Collapse file tree 7 files changed +15
-10
lines changed Expand file tree Collapse file tree 7 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,17 @@ module.exports = {
22
22
{ { #if_eq build "runtime" } }
23
23
'vue' : 'vue/dist/vue.common.js' ,
24
24
{ { / if_eq } }
25
+ 'bourgeon' : path . resolve ( __dirname , '../src/plugins/bourgeon.js' ) ,
25
26
{ { #if svg} }
26
27
'utils' : path . resolve ( __dirname , './utils' ) ,
27
28
{ { / if } }
29
+ { { #if i18n} }
30
+ 'locales' : path . resolve ( __dirname , '../src/locales' ) ,
31
+ { { / if } }
28
32
'src' : path . resolve ( __dirname , '../src' ) ,
29
33
'assets' : path . resolve ( __dirname , '../src/assets' ) ,
30
- 'components' : path . resolve ( __dirname , '../src/components' )
34
+ 'components' : path . resolve ( __dirname , '../src/components' ) ,
35
+ 'plugins' : path . resolve ( __dirname , '../src/plugins' )
31
36
}
32
37
} ,
33
38
resolveLoader : {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default {
9
9
props: [' name' ],
10
10
computed: {
11
11
xlink () {
12
- return require (` ../ assets/svg/${ this .name } .svg` )
12
+ return require (` assets/svg/${ this .name } .svg` )
13
13
}
14
14
}
15
15
}
Original file line number Diff line number Diff line change 3
3
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
4
4
{ { / i f _ e q } }
5
5
import Vue from 'vue'
6
+ import Bourgeon from 'bourgeon'
6
7
import App from './App'
7
- import Bourgeon from './plugins/bourgeon'
8
8
9
9
Vue . use ( Bourgeon , {
10
10
locales : [ 'fr' , 'en' ]
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-unused-vars */
2
2
{ { #svg} }
3
- import Icon from '../ components/Icon.vue'
3
+ import Icon from 'components/Icon.vue'
4
4
{ { / s v g } }
5
5
{ { #routing} }
6
- import Router from '. /router'
6
+ import Router from 'plugins /router'
7
7
{ { / r o u t i n g } }
8
8
{ { #i18n} }
9
- import I18n from '. /i18n'
9
+ import I18n from 'plugins /i18n'
10
10
{ { / i 1 8 n } }
11
11
12
12
export default {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default {
17
17
: Vue . config . fallbackLang
18
18
19
19
options . forEach ( function ( lang ) {
20
- Vue . locale ( lang , require ( `../ locales/${ lang } .yml` ) )
20
+ Vue . locale ( lang , require ( `locales/${ lang } .yml` ) )
21
21
} )
22
22
23
23
Vue . mixin ( {
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-unused-vars */
2
2
import VueRouter from 'vue-router'
3
- import routes from '.. /routes'
3
+ import routes from 'src /routes'
4
4
5
5
export default {
6
6
router : null ,
Original file line number Diff line number Diff line change 1
- import WelcomeComponent from './ components/Welcome'
2
- import HelloComponent from './ components/Hello'
1
+ import WelcomeComponent from 'components/Welcome'
2
+ import HelloComponent from 'components/Hello'
3
3
4
4
export default [
5
5
{
You can’t perform that action at this time.
0 commit comments