Skip to content

Commit

Permalink
Merge pull request #97 from IBEC-BOX/config
Browse files Browse the repository at this point in the history
delete style.scss
  • Loading branch information
Aidosgd authored Mar 14, 2024
2 parents 2a457cc + 91bcc42 commit cbd0e9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 66 deletions.
14 changes: 5 additions & 9 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,19 @@ export default defineNuxtModule<ModuleOptions>({
},
setup(options, nuxt) {
const resolver = createResolver(import.meta.url);
const runtimeDir = resolver.resolve("./runtime");
// const runtimeDir = resolver.resolve("./runtime");

// @ts-ignore
nuxt.options.runtimeConfig.public.nuxt3UIKitTheme = options.theme;

const isDevelopment =
runtimeDir.endsWith("src/runtime") || runtimeDir.endsWith("src\\runtime");

const extension = isDevelopment ? "scss" : "css";
// const isDevelopment =
// runtimeDir.endsWith("src/runtime") || runtimeDir.endsWith("src\\runtime");
//
// const extension = isDevelopment ? "scss" : "css";

// Do not add the extension since the `.ts` will be transpiled to `.mjs` after `npm run prepack`
addPlugin(resolver.resolve("./runtime/plugin"));

nuxt.options.css.push(
resolver.resolve(`./runtime/plugins/vuetify/styles.${extension}`)
);

// Components

if (options.components.includes("pagesTestVuetify")) {
Expand Down
2 changes: 0 additions & 2 deletions src/runtime/plugins/vuetify/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type {ThemeDefinition} from "vuetify";
import {createVuetify} from 'vuetify';
import 'vuetify/styles'; // pre-build css styles
// import '../style/vuetify.scss'

/* Add all components and directives, for dev & prototyping only. */
import * as components from 'vuetify/components';
Expand Down
55 changes: 0 additions & 55 deletions src/runtime/plugins/vuetify/styles.scss

This file was deleted.

0 comments on commit cbd0e9f

Please sign in to comment.