@sfgrp/taxonpages 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfgrp/taxonpages",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "CLI tool for building taxon pages powered by SpeciesFileGroup",
5
5
  "type": "module",
6
6
  "private": false,
@@ -12,7 +12,11 @@ import {
12
12
  relativeToRouterPlugin,
13
13
  variableReplacementPlugin
14
14
  } from '../../plugins/markdown/index.js'
15
- import { ViteRestart, projectStylesPlugin, componentRegistrationPlugin } from '../../plugins/vite/index.js'
15
+ import {
16
+ ViteRestart,
17
+ projectStylesPlugin,
18
+ componentRegistrationPlugin
19
+ } from '../../plugins/vite/index.js'
16
20
 
17
21
  /**
18
22
  * Build the full Vite configuration, resolving paths correctly
@@ -41,6 +45,14 @@ export function getViteConfig({ packageRoot, projectRoot }) {
41
45
  }
42
46
  },
43
47
 
48
+ optimizeDeps: {
49
+ include: [
50
+ 'leaflet',
51
+ 'leaflet.markercluster/dist/leaflet.markercluster',
52
+ '@geoman-io/leaflet-geoman-free'
53
+ ]
54
+ },
55
+
44
56
  css: {
45
57
  postcss: {
46
58
  plugins: [
@@ -59,9 +71,12 @@ export function getViteConfig({ packageRoot, projectRoot }) {
59
71
 
60
72
  plugins: [
61
73
  componentRegistrationPlugin({ packageRoot, projectRoot }),
62
- projectStylesPlugin(projectRoot),
74
+ //projectStylesPlugin(projectRoot),
63
75
 
64
- ViteRestart({ dir: [resolve(projectRoot, 'config/**/*.yml')], projectRoot }),
76
+ ViteRestart({
77
+ dir: [resolve(projectRoot, 'config/**/*.yml')],
78
+ projectRoot
79
+ }),
65
80
 
66
81
  Vue({
67
82
  include: [/\.vue$/, /\.md$/]
package/src/main.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import.meta.glob('@/assets/css/main.css', { eager: true })
2
+ import.meta.glob('~/config/style/*.{scss,css}', { eager: true })
2
3
 
3
4
  import App from './App.vue'
4
5
  import SetupApp from '@/modules/setup/views/Index.vue'
package/vite.config.js CHANGED
@@ -53,7 +53,7 @@ export default (configEnv = {}) => {
53
53
  plugins: [
54
54
  ViteRestart({ dir: [path.resolve(projectRoot, 'config/**/*.yml')] }),
55
55
 
56
- projectStylesPlugin(projectRoot),
56
+ //projectStylesPlugin(projectRoot),
57
57
 
58
58
  Vue({
59
59
  include: [/\.vue$/, /\.md$/]