Skip to content

Commit

Permalink
satellite/admin/back-office/ui: speed up build command
Browse files Browse the repository at this point in the history
This change speeds up the build of the new satellite admin web app
using the same method that 8b0d25c used to speed up the build of the
new satellite web app.

New build time:   23.394s
Old build time: 1m40.930s

Change-Id: Ic6fcfdfc73b78bc26bddc421c608076b23532967
  • Loading branch information
jewharton committed Oct 27, 2023
1 parent 1aadc09 commit eff1719
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
4 changes: 0 additions & 4 deletions satellite/admin/back-office/ui/src/main.js
Expand Up @@ -13,10 +13,6 @@ import App from './App.vue'
// Composables
import { createApp } from 'vue'

// Styles
import './styles/settings.scss'
// import './styles/styles.scss'

// Plugins
import { registerPlugins } from '@/plugins'

Expand Down
2 changes: 1 addition & 1 deletion satellite/admin/back-office/ui/src/plugins/vuetify.js
Expand Up @@ -9,7 +9,7 @@

// Styles
import '@mdi/font/css/materialdesignicons.css'
// import 'vuetify/styles'
import 'vuetify/styles'

// Inter Font using FontSource
import '@fontsource-variable/inter';
Expand Down
28 changes: 6 additions & 22 deletions satellite/admin/back-office/ui/src/styles/settings.scss
@@ -1,31 +1,15 @@
// Copyright (C) 2023 Storj Labs, Inc.
// See LICENSE for copying information.

/**
* src/styles/settings.scss
*
* Configures SASS variables and Vuetify overwrites
*/


// Warning
// Duplicated CSS
// Placing actual styles or importing a regular stylesheet
// into the settings file will cause them to be
// duplicated everywhere the file is imported.

// Only put variables, mixins, and functions in the settings file,
// styles should be placed in the main stylesheet or loaded another way.


// Use SASS https://vuetifyjs.com/en/features/sass-variables/

// @use 'vuetify' with (
// // $utilities: false,
// $color-pack: false,
// $body-font-family: 'Inter',
// );
$font-family: 'Inter Variable', sans-serif;

// To obtain settings from Vuetify, you must forward its variables from within your local stylesheet
@forward 'vuetify' with (
// $utilities: false,
@use 'vuetify/settings' with (
$color-pack: false,
$body-font-family: 'Inter Variable',
$body-font-family: $font-family,
);
2 changes: 0 additions & 2 deletions satellite/admin/back-office/ui/src/styles/styles.scss
Expand Up @@ -6,8 +6,6 @@
*
*/

@use './settings';

// Light Theme
.v-theme--light {
--v-border-color: 0, 0, 0;
Expand Down

0 comments on commit eff1719

Please sign in to comment.