Skip to content

Commit

Permalink
fix(): Export tokens css.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Dec 18, 2023
1 parent e7450ad commit 9f58e1a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";
import path from "path";
import postcss from "rollup-plugin-postcss";
import copy from "rollup-plugin-copy";
import { terser } from "rollup-plugin-terser";
export default [
{
Expand All @@ -25,9 +24,8 @@ export default [
declarationDir: "dist/types",
}),
// CSS vendor prefixing etc.
postcss({
extract: path.resolve("./dist/tokens.css"),
config: "./postcss.config.js",
copy({
targets: [{ src: "./src/tokens.css", dest: "./dist" }],
}),
// Minify output.
terser(),
Expand Down

0 comments on commit 9f58e1a

Please sign in to comment.