Skip to content

Commit 7acd586

Browse files
authored
add css to export (#27)
1 parent 9b5d980 commit 7acd586

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Added `styles.css` to the export in the package.json
13+
1014
## [2.4.0] - 2023-08-04
1115

1216
### Added

cypress/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// ***********************************************************
1515

1616
import "bootstrap/dist/css/bootstrap.min.css";
17-
import "react-pattern-ui/index.css";
17+
import "react-pattern-ui/styles.css";
1818

1919
// Import commands.js using ES2015 syntax:
2020
import "./commands";

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
".": {
1515
"types": "./dist/index.d.ts",
1616
"import": "./dist/index.modern.js",
17-
"require": "./dist/index.js"
18-
}
17+
"require": "./dist/index.js",
18+
"styles": "./dist/styles.css"
19+
},
20+
"./styles": "./dist/styles.css",
21+
"./styles.css": "./dist/styles.css"
1922
},
2023
"main": "dist/index.js",
2124
"umd:main": "dist/index.umd.js",
@@ -25,6 +28,7 @@
2528
"source": "src/index.ts",
2629
"jsnext:main": "dist/index.modern.js",
2730
"types": "dist/index.d.ts",
31+
"styles": "./dist/styles.css",
2832
"files": [
2933
"dist"
3034
],

rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import sass from "rollup-plugin-sass";
88
const input = "src/index.ts";
99

1010
const plugins = [
11-
sass({ output: true }),
11+
sass({ output: "dist/styles.css" }),
1212
external({
1313
includeDependencies: true,
1414
}),

0 commit comments

Comments
 (0)