2020-10-09 03:15:45 +02:00
|
|
|
export default {
|
|
|
|
// Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
|
|
|
|
ssr: false,
|
|
|
|
|
|
|
|
// Target (https://go.nuxtjs.dev/config-target)
|
|
|
|
target: 'static',
|
|
|
|
|
2021-10-27 18:59:55 +02:00
|
|
|
generate: {
|
|
|
|
fallback: true,
|
|
|
|
},
|
|
|
|
|
2020-10-09 03:15:45 +02:00
|
|
|
// Global page headers (https://go.nuxtjs.dev/config-head)
|
|
|
|
head: {
|
2020-10-12 19:41:52 +02:00
|
|
|
title: 'Tornado.cash',
|
2020-10-09 03:15:45 +02:00
|
|
|
meta: [
|
|
|
|
{ charset: 'utf-8' },
|
|
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
|
|
{ hid: 'description', name: 'description', content: '' },
|
|
|
|
],
|
2020-10-12 19:41:52 +02:00
|
|
|
link: [
|
|
|
|
{ rel: 'manifest', href: '/manifest.json' },
|
|
|
|
{
|
|
|
|
rel: 'shortcut icon',
|
|
|
|
type: 'image/x-icon',
|
|
|
|
href: '/favicon/favicon.ico',
|
|
|
|
},
|
|
|
|
{ rel: 'apple-touch-icon', href: '/favicon/apple-touch-icon.png' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
// Customize the progress-bar color
|
|
|
|
loading: { color: '#44F1A6', height: '5px', duration: 5000 },
|
|
|
|
|
|
|
|
loadingIndicator: {
|
|
|
|
name: 'circle',
|
|
|
|
color: '#44F1A6',
|
|
|
|
background: '#000',
|
2020-10-09 03:15:45 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
// Global CSS (https://go.nuxtjs.dev/config-css)
|
2020-10-12 19:41:52 +02:00
|
|
|
css: ['@/assets/styles/app.scss'],
|
2020-10-09 03:15:45 +02:00
|
|
|
|
|
|
|
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
|
2021-10-27 18:59:55 +02:00
|
|
|
plugins: ['~/plugins/i18n.js', '~/plugins/ipfs.js'],
|
2020-10-09 03:15:45 +02:00
|
|
|
|
|
|
|
// Auto import components (https://go.nuxtjs.dev/config-components)
|
|
|
|
components: true,
|
|
|
|
|
|
|
|
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
|
|
|
|
buildModules: [
|
|
|
|
// https://go.nuxtjs.dev/eslint
|
|
|
|
'@nuxtjs/eslint-module',
|
|
|
|
],
|
|
|
|
|
|
|
|
// Modules (https://go.nuxtjs.dev/config-modules)
|
|
|
|
modules: [
|
|
|
|
// https://go.nuxtjs.dev/buefy
|
2020-10-12 19:41:52 +02:00
|
|
|
[
|
|
|
|
'nuxt-buefy',
|
|
|
|
{
|
|
|
|
css: false,
|
|
|
|
materialDesignIcons: false,
|
|
|
|
defaultIconPack: 'trnd',
|
|
|
|
customIconPacks: {
|
|
|
|
trnd: {
|
|
|
|
sizes: {
|
|
|
|
default: 'trnd-24px',
|
|
|
|
'is-small': null,
|
|
|
|
'is-medium': 'trnd-36px',
|
|
|
|
'is-large': 'trnd-48px',
|
|
|
|
},
|
|
|
|
iconPrefix: 'trnd-',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-11-19 11:25:44 +01:00
|
|
|
'nuxt-web3-provider',
|
2020-10-09 03:15:45 +02:00
|
|
|
],
|
|
|
|
|
2020-11-17 17:30:11 +01:00
|
|
|
provider: {
|
|
|
|
rpcUrl: 'https://mainnet.infura.io/v3/da564f81919d40c9a3bcaee4ff44438d',
|
|
|
|
},
|
|
|
|
|
2020-10-09 03:15:45 +02:00
|
|
|
// Build Configuration (https://go.nuxtjs.dev/config-build)
|
2020-12-12 21:19:11 +01:00
|
|
|
build: {
|
|
|
|
/*
|
|
|
|
** You can extend webpack config here
|
|
|
|
*/
|
|
|
|
extend(config, ctx) {
|
|
|
|
config.output.publicPath = './_nuxt/'
|
|
|
|
},
|
2021-10-27 18:59:55 +02:00
|
|
|
html: {
|
|
|
|
minify: {
|
|
|
|
collapseWhitespace: true, // as @dario30186 mentioned
|
|
|
|
removeComments: true, // 👈 add this line
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loaders: {
|
|
|
|
fontUrl: { limit: 25000 },
|
|
|
|
imgUrl: { limit: 15000 },
|
|
|
|
},
|
|
|
|
splitChunks: {
|
|
|
|
layouts: false,
|
|
|
|
pages: false,
|
|
|
|
commons: false,
|
|
|
|
},
|
2020-12-12 21:19:11 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
router: {
|
|
|
|
linkActiveClass: '',
|
|
|
|
linkExactActiveClass: 'is-active',
|
|
|
|
extendRoutes(routes, resolve) {
|
|
|
|
routes.push({
|
|
|
|
name: 'ipfs-root',
|
|
|
|
path: '*',
|
|
|
|
component: resolve(__dirname, 'pages/index.vue'),
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
2020-10-09 03:15:45 +02:00
|
|
|
}
|