@newlogic-digital/core 4.0.0-rc.6 → 4.0.0-rc.8

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 CHANGED
@@ -2,7 +2,6 @@ import fs from 'node:fs'
2
2
  import os from 'node:os'
3
3
  import { resolve, join, dirname } from 'node:path'
4
4
  import vituum from 'vituum'
5
- import cssInline from '@vituum/vite-plugin-css-inline'
6
5
  import send from '@vituum/vite-plugin-send'
7
6
  import { getPackageInfo, deepMergeWith } from 'vituum/utils/common.js'
8
7
  import browserslistToEsbuild from 'browserslist-to-esbuild'
@@ -99,13 +98,18 @@ const plugin = async (options = {}) => {
99
98
  optionalPlugins.push(tailwindcss(options.tailwindcss))
100
99
  }
101
100
 
101
+ if (options.cssInline.paths.length > 0) {
102
+ const cssInline = (await import('@vituum/vite-plugin-css-inline')).default
103
+
104
+ optionalPlugins.push(cssInline(options.cssInline))
105
+ }
106
+
102
107
  const simpleIcons = resolve(dirname((fileURLToPath(import.meta.url))), 'icons/simpleicons')
103
108
  const solidIcons = resolve(dirname((fileURLToPath(import.meta.url))), 'icons/solid')
104
109
 
105
110
  const plugins = [
106
111
  vituum(options.vituum),
107
112
  ...optionalPlugins,
108
- cssInline(options.cssInline),
109
113
  send(options.send),
110
114
  heroicons(
111
115
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "4.0.0-rc.6",
4
+ "version": "4.0.0-rc.8",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",
@@ -43,6 +43,7 @@
43
43
  "src",
44
44
  "types",
45
45
  "eslint-stylistic.json",
46
+ "stylelint-config.json",
46
47
  "index.js"
47
48
  ],
48
49
  "exports": {
@@ -0,0 +1,16 @@
1
+ {
2
+ "extends": [
3
+ "@stylistic/stylelint-config",
4
+ "stylelint-config-standard"
5
+ ],
6
+ "rules": {
7
+ "at-rule-no-unknown": [true, {"ignoreAtRules": ["layer", "tailwind", "theme", "utility", "variant", "custom-variant", "source"]}],
8
+ "length-zero-no-unit": [true, {"ignore": ["custom-properties"]}],
9
+ "number-max-precision": [4, { "ignoreProperties": "letter-spacing" }],
10
+ "property-no-unknown": [true, { "ignoreProperties": ["/^mso-/"]} ],
11
+ "import-notation": "string",
12
+ "media-feature-range-notation": null,
13
+ "nesting-selector-no-missing-scoping-root": null,
14
+ "no-invalid-position-declaration": null
15
+ }
16
+ }