Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

cssbun

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssbun - npm Package Compare versions

Comparing version
1.2.2
to
1.2.3
+1
-1
package.json
{
"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",

@@ -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.