2
2
< % if ( ui === 'vuetify' ) { - % >
3
3
import VuetifyLoaderPlugin from 'vuetify-loader/lib/plugin'
4
4
< % } - % >
5
- import pkg from './package'
6
5
< % } else if ( server === 'adonis' ) { - % >
7
6
const { resolve } = require ( 'path' )
8
- const pkg = require ( '../package' )
9
7
< % } else { - % >
10
- const pkg = require ( './package' )
11
8
< % } - % >
12
9
< % if ( ! esm ) { - % >
13
10
< % if ( ui === 'vuetify' ) { % > const VuetifyLoaderPlugin = require ( 'vuetify-loader/lib/plugin' ) < % } % >
@@ -27,11 +24,11 @@ module.exports = {
27
24
** Headers of the page
28
25
*/
29
26
head: {
30
- title : pkg . name ,
27
+ title : process . env . npm_package_name || '' ,
31
28
meta : [
32
29
{ charset : 'utf-8' } ,
33
30
{ name : 'viewport' , content : 'width=device-width, initial-scale=1' } ,
34
- { hid : 'description' , name : 'description' , content : pkg . description }
31
+ { hid : 'description' , name : 'description' , content : process . env . npm_package_description || '' }
35
32
] ,
36
33
link : [
37
34
{ rel : 'icon' , type : 'image/x-icon' , href : '/favicon.ico' } < % if ( ui === 'vuetify' ) { % > ,
@@ -83,12 +80,13 @@ module.exports = {
83
80
// Doc: https://buefy.github.io/#/documentation
84
81
'nuxt-buefy',< % } % > < % if ( pwa = == 'yes ') { % >
85
82
'@nuxtjs/pwa',< % } % >
86
- ],< % if ( axios === 'yes' ) { % >
83
+ ],
84
+ < % if ( axios = == 'yes ') { % >
87
85
/*
88
86
** Axios module configuration
87
+ ** See https://axios.nuxtjs.org/options
89
88
*/
90
89
axios: {
91
- // See https://axios.nuxtjs.org/options
92
90
} ,< % } % >
93
91
94
92
/*
0 commit comments