From caeb97acd113cb04a8664a680ef7ee646f888026 Mon Sep 17 00:00:00 2001 From: Bubun Das Date: Mon, 27 Nov 2023 07:14:26 +0000 Subject: [PATCH] CSS Prefix Added --- assets/css/style.css | 8 +++-- assets/css/style.min.css | 3 +- build.js | 65 ++++++++++++++++++++++++++++++++++++++++ package.json | 10 +++++-- postcss.config.js | 9 ++++++ tailwind.config.js | 3 ++ templates/client.tpl | 2 +- 7 files changed, 93 insertions(+), 7 deletions(-) create mode 100644 build.js create mode 100644 postcss.config.js diff --git a/assets/css/style.css b/assets/css/style.css index bd6213e..a9788b1 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1,3 +1,5 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; \ No newline at end of file +.s-whmcs { + @tailwind base; + @tailwind components; + @tailwind utilities; +} \ No newline at end of file diff --git a/assets/css/style.min.css b/assets/css/style.min.css index 5e08329..ac8aa8d 100644 --- a/assets/css/style.min.css +++ b/assets/css/style.min.css @@ -1 +1,2 @@ -/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.relative{position:relative}.col-span-3{grid-column:span 3/span 3}.mb-1{margin-bottom:.25rem}.mb-3{margin-bottom:.75rem}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-4{gap:1rem}.rounded{border-radius:.25rem}.border-0{border-width:0}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-pink-500{--tw-bg-opacity:1;background-color:rgb(236 72 153/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-left{text-align:left}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.outline-none{outline:2px solid #0000;outline-offset:2px}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.ease-linear{transition-timing-function:linear}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\:bg-pink-600:active{--tw-bg-opacity:1;background-color:rgb(219 39 119/var(--tw-bg-opacity))} \ No newline at end of file +/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com*/.s-whmcs *,.s-whmcs :after,.s-whmcs :before{border:0 solid #e5e7eb;box-sizing:border-box}.s-whmcs :after,.s-whmcs :before{--tw-content:""}.s-whmcs html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.s-whmcs body{line-height:inherit;margin:0}.s-whmcs hr{border-top-width:1px;color:inherit;height:0}.s-whmcs abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.s-whmcs h1,.s-whmcs h2,.s-whmcs h3,.s-whmcs h4,.s-whmcs h5,.s-whmcs h6{font-size:inherit;font-weight:inherit}.s-whmcs a{color:inherit;text-decoration:inherit}.s-whmcs b,.s-whmcs strong{font-weight:bolder}.s-whmcs code,.s-whmcs kbd,.s-whmcs pre,.s-whmcs samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.s-whmcs small{font-size:80%}.s-whmcs sub,.s-whmcs sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.s-whmcs sub{bottom:-.25em}.s-whmcs sup{top:-.5em}.s-whmcs table{border-collapse:collapse;border-color:inherit;text-indent:0}.s-whmcs button,.s-whmcs input,.s-whmcs optgroup,.s-whmcs select,.s-whmcs textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}.s-whmcs button,.s-whmcs select{text-transform:none}.s-whmcs [type=button],.s-whmcs [type=reset],.s-whmcs [type=submit],.s-whmcs button{-webkit-appearance:button;background-color:transparent;background-image:none}.s-whmcs :-moz-focusring{outline:auto}.s-whmcs :-moz-ui-invalid{box-shadow:none}.s-whmcs progress{vertical-align:baseline}.s-whmcs ::-webkit-inner-spin-button,.s-whmcs ::-webkit-outer-spin-button{height:auto}.s-whmcs [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.s-whmcs ::-webkit-search-decoration{-webkit-appearance:none}.s-whmcs ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.s-whmcs summary{display:list-item}.s-whmcs blockquote,.s-whmcs dd,.s-whmcs dl,.s-whmcs figure,.s-whmcs h1,.s-whmcs h2,.s-whmcs h3,.s-whmcs h4,.s-whmcs h5,.s-whmcs h6,.s-whmcs hr,.s-whmcs p,.s-whmcs pre{margin:0}.s-whmcs fieldset{margin:0;padding:0}.s-whmcs legend{padding:0}.s-whmcs menu,.s-whmcs ol,.s-whmcs ul{list-style:none;margin:0;padding:0}.s-whmcs dialog{padding:0}.s-whmcs textarea{resize:vertical}.s-whmcs input::-moz-placeholder,.s-whmcs textarea::-moz-placeholder{color:#9ca3af;opacity:1}.s-whmcs input::placeholder,.s-whmcs textarea::placeholder{color:#9ca3af;opacity:1}.s-whmcs [role=button],.s-whmcs button{cursor:pointer}.s-whmcs :disabled{cursor:default}.s-whmcs audio,.s-whmcs canvas,.s-whmcs embed,.s-whmcs iframe,.s-whmcs img,.s-whmcs object,.s-whmcs svg,.s-whmcs video{display:block;vertical-align:middle}.s-whmcs img,.s-whmcs video{height:auto;max-width:100%}.s-whmcs [hidden]{display:none}.s-whmcs *,.s-whmcs :after,.s-whmcs :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.s-whmcs ::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.s-whmcs .relative{position:relative}.s-whmcs .col-span-3{grid-column:span 3/span 3}.s-whmcs .mb-1{margin-bottom:.25rem}.s-whmcs .mb-3{margin-bottom:.75rem}.s-whmcs .ml-2{margin-left:.5rem}.s-whmcs .mr-1{margin-right:.25rem}.s-whmcs .mt-4{margin-top:1rem}.s-whmcs .block{display:block}.s-whmcs .flex{display:flex}.s-whmcs .grid{display:grid}.s-whmcs .hidden{display:none}.s-whmcs .w-full{width:100%}.s-whmcs .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.s-whmcs .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.s-whmcs .items-center{align-items:center}.s-whmcs .gap-1{gap:.25rem}.s-whmcs .gap-4{gap:1rem}.s-whmcs .rounded{border-radius:.25rem}.s-whmcs .border-0{border-width:0}.s-whmcs .bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.s-whmcs .bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.s-whmcs .bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.s-whmcs .bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.s-whmcs .bg-pink-500{--tw-bg-opacity:1;background-color:rgb(236 72 153/var(--tw-bg-opacity))}.s-whmcs .bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.s-whmcs .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.s-whmcs .p-1{padding:.25rem}.s-whmcs .p-2{padding:.5rem}.s-whmcs .p-4{padding:1rem}.s-whmcs .px-4{padding-left:1rem;padding-right:1rem}.s-whmcs .py-2{padding-bottom:.5rem;padding-top:.5rem}.s-whmcs .text-left{text-align:left}.s-whmcs .text-sm{font-size:.875rem;line-height:1.25rem}.s-whmcs .text-xs{font-size:.75rem;line-height:1rem}.s-whmcs .font-bold{font-weight:700}.s-whmcs .font-semibold{font-weight:600}.s-whmcs .uppercase{text-transform:uppercase}.s-whmcs .text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.s-whmcs .text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.s-whmcs .text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.s-whmcs .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.s-whmcs .outline-none{outline:2px solid transparent;outline-offset:2px}.s-whmcs .transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.s-whmcs .duration-150{transition-duration:.15s}.s-whmcs .ease-linear{transition-timing-function:linear}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\:bg-pink-600:active{--tw-bg-opacity:1;background-color:rgb(219 39 119/var(--tw-bg-opacity))} +/*# sourceMappingURL=style.min.css.map */ \ No newline at end of file diff --git a/build.js b/build.js new file mode 100644 index 0000000..043f091 --- /dev/null +++ b/build.js @@ -0,0 +1,65 @@ +const postcss = require('postcss'); +const postcssImport = require('postcss-import'); +const postcssNested = require('postcss-nested'); +const tailwindcss = require('tailwindcss'); +const autoprefixer = require('autoprefixer'); +const cssnano = require('cssnano'); +const fs = require('fs'); +const chokidar = require('chokidar'); + +const inputFile = './assets/css/style.css'; +const outputFile = './assets/css/style.min.css'; +const templatesFolder = './templates'; // Update with your templates folder path + +const plugins = [ + postcssImport, + postcssNested, + tailwindcss, + autoprefixer, + cssnano +]; + +const processCSS = async () => { + try { + const css = fs.readFileSync(inputFile, 'utf8'); + + const result = await postcss(plugins).process(css, { + from: inputFile, + to: outputFile, + map: { inline: false }, + }); + + fs.writeFileSync(outputFile, result.css); + + console.log('CSS build completed successfully.'); + } catch (error) { + console.error('Error building CSS:', error); + } +}; + +// Function to watch for CSS file changes +const watchCSS = () => { + console.log('Watching for CSS file changes...'); + chokidar.watch(inputFile).on('change', () => { + console.log('CSS file changed. Rebuilding...'); + processCSS(); + }); +}; + +// Function to watch for template file changes +const watchTemplates = () => { + console.log('Watching for template file changes...'); + chokidar.watch(templatesFolder).on('change', () => { + console.log('Template file changed. Rebuilding CSS...'); + processCSS(); + }); +}; + +// Start the initial CSS build +processCSS(); + +// Start watching for changes in watch mode +if (process.argv.includes('--watch')) { + watchCSS(); + watchTemplates(); // Add this line to watch templates folder +} diff --git a/package.json b/package.json index 7aef8f8..5463231 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "module": "index.ts", "type": "module", "scripts": { - "build": "tailwindcss -i ./assets/css/style.css -o ./assets/css/style.min.css --minify", - "watch": "tailwindcss -i ./assets/css/style.css -o ./assets/css/style.min.css --watch --minify" + "build": "node build.js", + "watch": "node build.js --watch" }, "devDependencies": { "bun-types": "latest" @@ -13,6 +13,12 @@ "typescript": "^5.0.0" }, "dependencies": { + "autoprefixer": "^10.4.16", + "chokidar": "^3.5.3", + "cssnano": "^6.0.1", + "postcss": "^8.4.31", + "postcss-import": "^15.1.0", + "postcss-nested": "^6.0.1", "tailwindcss": "^3.3.5" } } \ No newline at end of file diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..2be87b3 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,9 @@ +module.exports = { + plugins: { + 'postcss-import': {}, + 'postcss-nested': {}, + 'tailwindcss': {}, + 'autoprefixer': {}, + 'cssnano': {} + } + }; \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 7c78f3d..b92f35f 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,5 +1,8 @@ module.exports = { content: ["./templates/**/*.{tpl,js}"], + // corePlugins: { + // preflight: false, + // }, theme: { extend: {}, }, diff --git a/templates/client.tpl b/templates/client.tpl index 35cff74..cd0bcf7 100644 --- a/templates/client.tpl +++ b/templates/client.tpl @@ -1,6 +1,6 @@ -
+

Service Info