+1
-1
| { | ||
| "name": "cssbun", | ||
| "version": "1.2.2", | ||
| "version": "1.2.3", | ||
| "description": "An extremely lightweight bundler than does nothing but bundles your css files using the import syntax.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+17
-5
@@ -5,4 +5,6 @@ # cssbun | ||
| The end result is you can use your css files directly in the browser without being bundled, or | ||
| you can use the bundle. They should both be interchangable. | ||
| you can use the bundle. They should both be interchangeable. | ||
| You can import files via their relative path, or resolve them from node modules. | ||
| ## Installation | ||
@@ -15,7 +17,7 @@ ```bash | ||
| ```bash | ||
| npm install -g cssbun | ||
| npm install --global cssbun | ||
| ``` | ||
| ## Example | ||
| The best example is the [multiple test scenario](test/scenarios/multiple) used in this project. | ||
| Check out the test scenarios [here](test/scenarios) to see some example usages. | ||
@@ -45,5 +47,17 @@ ## Usage | ||
| > Note: Any `@import url("???")` will not be parsed, and will stay in your bundle as intended. | ||
| ```css | ||
| /* import a node module's main entrypoint */ | ||
| @import "ress"; | ||
| /* import a specific file from a node module */ | ||
| @import "ress/dist/ress.min.css"; | ||
| /* import a local file */ | ||
| @import "./included.css"; | ||
| /* import at runtime (don't bundle */ | ||
| @import url("https://unpkg.com/ress/dist/ress.min.css"); | ||
| .test { | ||
@@ -53,3 +67,1 @@ background-color: blue; | ||
| ``` | ||
| > Note: Any `@import url("???")` will not be parsed, and will stay in your bundle as intended. |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
11421
3.07%64
23.08%