1
1
const pkg = require ( './package' )
2
2
3
3
module . exports = {
4
+ mode : "<%= mode %>" ,
4
5
/*
5
6
** Headers of the page
6
7
*/
@@ -29,32 +30,32 @@ module.exports = {
29
30
'~/assets/css/tailwind.css' < % } % >
30
31
] ,
31
32
32
- /*
33
- ** Plugins to load before mounting the App
34
- */
33
+ /*
34
+ ** Plugins to load before mounting the App
35
+ */
35
36
plugins : [ < % if ( ui === 'element-ui' ) { % >
36
37
'@/plugins/element-ui' < % } else if ( ui === 'vuetify' ) { % >
37
38
'@/plugins/vuetify' < % } % >
38
39
] ,
39
40
40
- /*
41
- ** Nuxt.js modules
42
- */
41
+ /*
42
+ ** Nuxt.js modules
43
+ */
43
44
modules : [ < % if ( axios === 'yes' ) { % >
44
45
// Doc: https://github.com/nuxt-community/axios-module#usage
45
46
'@nuxtjs/axios' < % } % > < % if ( ui === 'bootstrap' ) { % > ,
46
47
// Doc: https://bootstrap-vue.js.org/docs/
47
48
'bootstrap-vue/nuxt' < % } % > < % if ( ui === 'bulma' ) { % > ,
48
- // Doc:https://github.com/nuxt-community/modules/tree/master/packages/bulma
49
- '@nuxtjs/bulma' < % } % >
49
+ // Doc:https://github.com/nuxt-community/modules/tree/master/packages/bulma
50
+ '@nuxtjs/bulma' < % } % >
50
51
] , < % if ( axios = == 'yes' ) { % >
51
52
52
- /*
53
- ** Axios module configuration
54
- */
53
+ /*
54
+ ** Axios module configuration
55
+ */
55
56
axios : {
56
57
// See https://github.com/nuxt-community/axios-module#options
57
- } , < % } % >
58
+ } , < % } % >
58
59
59
60
/*
60
61
** Build configuration
@@ -64,15 +65,15 @@ module.exports = {
64
65
** You can extend webpack config here
65
66
*/
66
67
extend ( config , ctx ) {
67
- < % if ( eslint === 'yes' ) { % > / / Run ESLint on save
68
- if ( ctx . isDev && ctx . isClient ) {
69
- config . module . rules . push ( {
70
- enforce : 'pre' ,
71
- test : / \. ( j s | v u e ) $ / ,
72
- loader : 'eslint-loader' ,
73
- exclude : / ( n o d e _ m o d u l e s ) /
74
- } )
75
- } < % } % >
68
+ < % if ( eslint === 'yes' ) { % > / / Run ESLint on save
69
+ if ( ctx . isDev && ctx . isClient ) {
70
+ config . module . rules . push ( {
71
+ enforce : 'pre' ,
72
+ test : / \. ( j s | v u e ) $ / ,
73
+ loader : 'eslint-loader' ,
74
+ exclude : / ( n o d e _ m o d u l e s ) /
75
+ } )
76
+ } < % } % >
76
77
}
77
78
}
78
79
}
0 commit comments