12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 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'
- }
- }
|