We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a145afd commit 0b5f3d7Copy full SHA for 0b5f3d7
nativescript.vite.mjs
@@ -0,0 +1,22 @@
1
+import{createRequire}from"module";
2
+constrequire=createRequire(import.meta.url);
3
+
4
+letpostcssConfig="./postcss.config.js";
5
6
+try{
7
+consttailwind=require("tailwindcss");
8
+constnsTailwind=require("@nativescript/tailwind");
9
+postcssConfig={plugins: [tailwind,nsTailwind]};
10
+}catch(err){
11
+console.warn(
12
+"Inline PostCSS unavailable, falling back to ./postcss.config.js"
13
+);
14
+}
15
16
+exportdefault()=>{
17
+return{
18
+css: {
19
+postcss: postcssConfig,
20
+},
21
+};
22
package.json
@@ -5,6 +5,7 @@
"main": "src/index.js",
"files": [
"src",
+"nativescript.vite.mjs",
"nativescript.webpack.js"
],
"repository": "https://github.com/NativeScript/tailwind",
0 commit comments