mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-21 01:32:03 +03:00
fb30b4b5be
* chore(release): version updates * updater too * update template Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
65 lines
1.3 KiB
JavaScript
65 lines
1.3 KiB
JavaScript
|
|
export default {
|
|
mode: 'spa',
|
|
/*
|
|
** Headers of the page
|
|
*/
|
|
head: {
|
|
title: process.env.npm_package_name || '',
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
|
|
],
|
|
link: [
|
|
{ rel: 'icon', type: 'image/x-icon', href: 'favicon.ico' }
|
|
]
|
|
},
|
|
/*
|
|
** Customize the progress-bar color
|
|
*/
|
|
loading: { color: '#fff' },
|
|
/*
|
|
** Global CSS
|
|
*/
|
|
css: [
|
|
],
|
|
/*
|
|
** Plugins to load before mounting the App
|
|
*/
|
|
plugins: [
|
|
],
|
|
/*
|
|
** Nuxt.js dev-modules
|
|
*/
|
|
buildModules: [
|
|
],
|
|
/*
|
|
** Nuxt.js modules
|
|
*/
|
|
modules: [
|
|
],
|
|
/*
|
|
** Build configuration
|
|
*/
|
|
build: {
|
|
/*
|
|
** You can extend webpack config here
|
|
*/
|
|
extend (config, ctx) {
|
|
// this is optional; optimization for webpack lazy loading
|
|
if (!ctx.isDev && ctx.isClient) {
|
|
const tauriConfig = require('./src-tauri/tauri.conf.json')
|
|
if (!tauriConfig.tauri.embeddedServer.active) {
|
|
const TauriRequirePlugin = require('@tauri-apps/tauri-webpack/plugins/tauri-require').plugin
|
|
config.plugins.push(new TauriRequirePlugin())
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
router: {
|
|
middleware: 'tauri'
|
|
}
|
|
}
|