@newlogic-digital/core 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +15 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import tailwind from '@vituum/tailwind'
|
2
1
|
import posthtml from '@vituum/posthtml'
|
3
2
|
import juice from '@vituum/juice'
|
4
3
|
import twig from '@vituum/twig'
|
@@ -9,6 +8,13 @@ import fs from 'fs'
|
|
9
8
|
import { dirname, resolve } from 'path'
|
10
9
|
import postHtml from 'posthtml'
|
11
10
|
import highlight from './prism.js'
|
11
|
+
import tailwindcss from 'tailwindcss'
|
12
|
+
import tailwindcssNesting from 'tailwindcss/nesting/index.js'
|
13
|
+
import postcssImport from 'postcss-import'
|
14
|
+
import postcssNesting from 'postcss-nesting'
|
15
|
+
import postcssCustomMedia from 'postcss-custom-media'
|
16
|
+
import postcssCustomSelectors from 'postcss-custom-selectors'
|
17
|
+
import autoprefixer from 'autoprefixer'
|
12
18
|
|
13
19
|
const posthtmlPrism = {
|
14
20
|
name: '@vituum/vite-plugin-posthtml-prism',
|
@@ -250,7 +256,7 @@ const integration = (userConfig = {}) => {
|
|
250
256
|
|
251
257
|
return {
|
252
258
|
config: {
|
253
|
-
integrations: [posthtml(userConfig.posthtml), juice(userConfig.juice),
|
259
|
+
integrations: [posthtml(userConfig.posthtml), juice(userConfig.juice), twig(userConfig.twig), latte(userConfig.latte)],
|
254
260
|
plugins: [posthtmlPrism],
|
255
261
|
server: {
|
256
262
|
open: true,
|
@@ -266,6 +272,13 @@ const integration = (userConfig = {}) => {
|
|
266
272
|
vite: {
|
267
273
|
server: {
|
268
274
|
origin: fs.existsSync(resolve(process.cwd(), 'app/settings.php')) ? (fs.readFileSync(resolve(process.cwd(), 'app/settings.php')).toString().match(/VITE_URL = '(.+)';/) || [null, null])[1] : null
|
275
|
+
},
|
276
|
+
css: {
|
277
|
+
postcss: {
|
278
|
+
plugins: [postcssImport, tailwindcssNesting(postcssNesting({
|
279
|
+
noIsPseudoSelector: true
|
280
|
+
})), postcssCustomMedia, postcssCustomSelectors, tailwindcss(userConfig.tailwind), autoprefixer]
|
281
|
+
}
|
269
282
|
}
|
270
283
|
}
|
271
284
|
}
|
package/package.json
CHANGED