11< % if ( esm ) { - % >
22< % if ( ui === 'vuetify' ) { - % >
3- import VuetifyLoaderPlugin from 'vuetify-loader/lib/plugin '
3+ import colors from 'vuetify/es5/util/colors '
44< % } - % >
55< % } else if ( server === 'adonis' ) { - % >
66const { resolve } = require ( 'path' )
77< % } else { - % >
88< % } - % >
9- < % if ( ! esm ) { - % >
10- < % if ( ui === 'vuetify' ) { % > const VuetifyLoaderPlugin = require ( 'vuetify-loader/lib/plugin' ) < % } % >
11- < % } - % >
12-
139< % if ( esm ) { - % >
1410export default {
1511< % } else { - % >
@@ -24,6 +20,9 @@ module.exports = {
2420 ** Headers of the page
2521 */
2622 head: {
23+ < % if ( ui === 'vuetify' ) { % >
24+ titleTemplate : '%s - ' + process . env . npm_package_name ,
25+ < % } % >
2726 title: process.env.npm_package_name || '',
2827 meta: [
2928 { charset : 'utf-8' } ,
@@ -50,8 +49,7 @@ module.exports = {
5049 */
5150 css: [< % if ( ui = == 'element-ui ') { % >
5251 'element-ui/lib/theme-chalk/index.css'< % } else if (ui === 'tailwind') { % >
53- '~/assets/css/tailwind.css'< % } else if ( ui = == 'vuetify ') { % >
54- '~/assets/style/app.styl'< % } else if ( ui = == 'iview ') { % >
52+ '~/assets/css/tailwind.css' < % } else if (ui === 'iview') { % >
5553 'iview/dist/styles/iview.css' < % } else if (ui === 'ant-design-vue') { % >
5654 'ant-design-vue/dist/antd.css' < % } else if (ui === 'tachyons') { % >
5755 'tachyons/css/tachyons.css' < % } %>
@@ -61,8 +59,7 @@ module.exports = {
6159 ** Plugins to load before mounting the App
6260 */
6361 plugins : [ < % if ( ui = == 'element-ui ') { % >
64- '@/plugins/element-ui'< % } else if ( ui = == 'vuetify ') { % >
65- '@/plugins/vuetify'< % } else if ( ui = == 'iview ') { % >
62+ '@/plugins/element-ui'< % } else if ( ui = == 'iview ') { % >
6663 '@/plugins/iview'< % } else if ( ui = == 'ant-design-vue ') { % >
6764 '@/plugins/antd-ui'< % } % >
6865 ],
@@ -80,14 +77,33 @@ module.exports = {
8077 // Doc: https://buefy.github.io/#/documentation
8178 'nuxt-buefy',< % } % > < % if ( pwa = == 'yes ') { % >
8279 '@nuxtjs/pwa',< % } % > < % if ( eslint = == 'yes ') { % >
83- '@nuxtjs/eslint-module',< % } % >
80+ '@nuxtjs/eslint-module',< % } % > < % if ( ui = == 'vuetify ') { % >
81+ '@nuxtjs/vuetify',< % } % >
8482 ],
8583 < % if ( axios = == 'yes ') { % >
8684 /*
8785 ** Axios module configuration
8886 ** See https://axios.nuxtjs.org/options
8987 */
9088 axios: {
89+
90+ } ,< % } % >
91+
92+ < % if ( ui = == 'vuetify ') { % >
93+ /*
94+ ** vuetify module configuration
95+ ** https://github.com/nuxt-community/vuetify-module
96+ */
97+ vuetify: {
98+ theme : {
99+ primary : colors . blue . darken2 ,
100+ accent : colors . grey . darken3 ,
101+ secondary : colors . amber . darken3 ,
102+ info : colors . teal . lighten1 ,
103+ warning : colors . amber . base ,
104+ error : colors . deepOrange . accent4 ,
105+ success : colors . green . accent3
106+ }
91107 } ,< % } % >
92108
93109 /*
@@ -100,13 +116,6 @@ module.exports = {
100116 customProperties : false
101117 }
102118 }
103- } , < % } %> < % if ( ui = == 'vuetify ') { % >
104- transpile: ['vuetify/lib'],
105- plugins: [new VuetifyLoaderPlugin()],
106- loaders: {
107- stylus : {
108- import : [ '~assets/style/variables.styl' ]
109- }
110119 } , < % } %> < % if ( ui = == 'element-ui ') { % >
111120 transpile: [/^element-ui/],
112121 < % } % >
0 commit comments