1.0.1 • Published 4 years ago

@ags1773/ui-components v1.0.1

Weekly downloads
13
License
ISC
Repository
github
Last release
4 years ago

Sample UI library exporting styled react components. Sandbox for learning how to export libraries using webpack

IMPORTANT:

  • locked css-loader to v3.x.x because of this issue. Took awfully long to debug this!

Extract CSS:

With the current setup, CSS is being extracted separately using the MiniCssExtractPlugin

import { Basket } from "../../../ui-components/dist/basket"; // Basked component named import. Default will also work
import "../../../ui-components/dist/basket/styles.css"; // styles for basket component, exported separately
import Image from "../../../ui-components/dist/image"; // Image component default import. Named will also work
import "../../../ui-components/dist/image/styles.css"; // styles for image component, exported separately

// *** OR, import all the components and their styles ***
import { Basket, Image } from "../../../ui-components/dist/all";
import "../../../ui-components/dist/all/styles.css";
1.0.2-test.4

4 years ago

1.0.2-test.3

4 years ago

1.0.2-test.1

4 years ago

1.0.2-test.0

4 years ago

1.0.1-test.1

4 years ago

1.0.1

4 years ago

1.0.1-test.2

4 years ago

1.0.1-test.0

4 years ago

1.0.0

4 years ago