pukaad-ui-lib 1.246.9 → 1.246.10
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/dist/module.json +1 -1
- package/dist/module.mjs +12 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addImportsDir, addComponentsDir, installModule, addPlugin } from '@nuxt/kit';
|
|
1
|
+
import { defineNuxtModule, createResolver, addImportsDir, addComponentsDir, installModule, addPlugin, addTemplate } from '@nuxt/kit';
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
3
|
import tailwindcss from '@tailwindcss/vite';
|
|
4
4
|
|
|
@@ -183,7 +183,17 @@ const module$1 = defineNuxtModule({
|
|
|
183
183
|
_nuxt.options.css.push(_require.resolve("leaflet/dist/leaflet.css"));
|
|
184
184
|
}
|
|
185
185
|
if (css.core) {
|
|
186
|
-
|
|
186
|
+
const coreCssPath = resolver.resolve("./runtime/assets/css/core.css");
|
|
187
|
+
const rootDir = _nuxt.options.rootDir;
|
|
188
|
+
const template = addTemplate({
|
|
189
|
+
filename: "pukaad-ui-core.css",
|
|
190
|
+
write: true,
|
|
191
|
+
getContents: () => `@import "${coreCssPath}";
|
|
192
|
+
@source "${rootDir}/**/*.vue";
|
|
193
|
+
@source "${rootDir}/**/*.ts";
|
|
194
|
+
`
|
|
195
|
+
});
|
|
196
|
+
_nuxt.options.css.push(template.dst);
|
|
187
197
|
}
|
|
188
198
|
if (css.quill) {
|
|
189
199
|
_nuxt.options.css.push(resolver.resolve("./runtime/assets/css/quill.css"));
|