Skip to content

Commit

Permalink
merge css inject
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rodrigues committed Jun 8, 2023
1 parent 0f88178 commit 94eea98
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "leux",
"version": "0.2.7",
"version": "0.2.8",
"homepage": "https://leux.vercel.app/",
"description": "React components library",
"publishConfig": {
Expand Down Expand Up @@ -79,6 +79,7 @@
"rollup": "^2.79.0",
"rollup-plugin-dts": "^4.2.2",
"rollup-plugin-includepaths": "^0.2.4",
"rollup-plugin-merge-and-inject-css": "^1.1.3",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
Expand Down
8 changes: 7 additions & 1 deletion rollup.config.js
Expand Up @@ -13,6 +13,8 @@ import cssnested from "postcss-nested";
// eslint-disable-next-line node/no-missing-import
import cssimport from "postcss-import";

import cssmerge from "rollup-plugin-merge-and-inject-css";

import peerDepsExternal from "rollup-plugin-peer-deps-external";
import eslint from "@rollup/plugin-eslint";
import eslintConfig from "./.eslintrc.json";
Expand All @@ -36,9 +38,13 @@ export default [
],
plugins: [
postcss({
extract: "leux.min.css",
inject: true,
minimize: true,
plugins: [cssimport(), simplevars(), cssnested()],
include: ["src/**/*.scss"],
}),
cssmerge({
id: "leux.min.css",
}),
peerDepsExternal(),
commonjs(),
Expand Down
1 change: 0 additions & 1 deletion src/components/Modal/index.ts
@@ -1,3 +1,2 @@
export * from "./Modal";
export * from "../ModalProvider/ModalProvider";
export * from "./Modal.model";
2 changes: 1 addition & 1 deletion src/components/OverlayProvider/OverlayProvider.tsx
@@ -1,5 +1,5 @@
import React, { ComponentProps, FC, PropsWithChildren, useMemo } from "react";
import { ModalProvider, ModalProviderProps } from "../Modal";
import { ModalProvider, ModalProviderProps } from "../ModalProvider";
import { LeSafeAny } from "../../types";
import { ToastProvider, ToastProviderProps } from "../ToastProvider";

Expand Down

0 comments on commit 94eea98

Please sign in to comment.