henry-pulver / rollup-plugin-tailwindcss Goto Github PK
View Code? Open in Web Editor NEWBundle Tailwind CSS stylesheet as a Rollup asset
License: MIT License
Bundle Tailwind CSS stylesheet as a Rollup asset
License: MIT License
Hi @alexdilley, do you have plans on upgrading the tailwind version to v3?
Here is my rollup.config:
import typescript from "rollup-plugin-typescript2";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import scss from "rollup-plugin-scss";
import json from "@rollup/plugin-json";
import tailwind from "rollup-plugin-tailwindcss";
import packageJson from "./package.json";
export default {
input: "src/index.ts",
output: [
{
file: packageJson.main,
format: "cjs",
sourcemap: true,
},
{
file: packageJson.module,
format: "esm",
sourcemap: true,
},
],
plugins: [
peerDepsExternal(),
tailwind({
input: "./src/styles.css",
purge: true,
}),
resolve(),
commonjs(),
typescript({
exclude: ["**/*.stories.tsx", "**/*.test.tsx"],
check: false,
}),
scss({ insert: true }),
json(),
],
external: ["react"],
};
Output: [!] (plugin tailwind) Error: No PostCSS Config found in: D:\workspace\my-app\packages\components
We should either add it to the documentation, or make this not required.
I'm trying to pass this a file path and I don't seem to get any output file.
tailwind({
input: 'landing/css/styles.css',
purge: true
}),
No output anywhere that I can see though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.