@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 +1 -1
- package/src/cli/utils/resolveConfig.js +18 -3
- package/src/main.js +1 -0
- package/vite.config.js +1 -1
package/package.json
CHANGED
|
@@ -12,7 +12,11 @@ import {
|
|
|
12
12
|
relativeToRouterPlugin,
|
|
13
13
|
variableReplacementPlugin
|
|
14
14
|
} from '../../plugins/markdown/index.js'
|
|
15
|
-
import {
|
|
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({
|
|
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
package/vite.config.js
CHANGED