-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels