@newlogic-digital/core 4.0.0-rc.5 → 4.0.0-rc.6
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/index.js +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs'
|
|
2
2
|
import os from 'node:os'
|
|
3
|
-
import { resolve, join } from 'node:path'
|
|
3
|
+
import { resolve, join, dirname } from 'node:path'
|
|
4
4
|
import vituum from 'vituum'
|
|
5
5
|
import cssInline from '@vituum/vite-plugin-css-inline'
|
|
6
6
|
import send from '@vituum/vite-plugin-send'
|
|
@@ -10,6 +10,7 @@ import browserslist from 'browserslist'
|
|
|
10
10
|
import { Features as LightningCssFeatures, browserslistToTargets } from 'lightningcss'
|
|
11
11
|
import process from 'node:process'
|
|
12
12
|
import heroicons from '@newlogic-digital/vite-plugin-heroicons'
|
|
13
|
+
import { fileURLToPath } from 'node:url'
|
|
13
14
|
|
|
14
15
|
const { name } = getPackageInfo(import.meta.url)
|
|
15
16
|
|
|
@@ -98,8 +99,8 @@ const plugin = async (options = {}) => {
|
|
|
98
99
|
optionalPlugins.push(tailwindcss(options.tailwindcss))
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
const simpleIcons = resolve(import.meta.url, 'icons/simpleicons')
|
|
102
|
-
const solidIcons = resolve(import.meta.url, 'icons/solid')
|
|
102
|
+
const simpleIcons = resolve(dirname((fileURLToPath(import.meta.url))), 'icons/simpleicons')
|
|
103
|
+
const solidIcons = resolve(dirname((fileURLToPath(import.meta.url))), 'icons/solid')
|
|
103
104
|
|
|
104
105
|
const plugins = [
|
|
105
106
|
vituum(options.vituum),
|
package/package.json
CHANGED