Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css-bundler

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-bundler

Simple CSS bundler in Python.

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

css-bundler - a simple CSS bundler in Python

It simply replaces CSS imports with the content of the modules and saves the result. You can specify the input file directly or setup multiple input files in the config.

Installation

pip install css-bundler

Usage without config

Specify input file with -i argument. css-bundler -i main.css > bundle.css

Usage with config

Configuration should be saved in css_bundler_conf.py file. Example:

SRC_FILES = ['core/core.css', 'admin/admin.css']
SRC_DIR = '/src/dir'
OUT_DIR = '/out/dir'

Using this config, the result will be saved in /out/dir/core.css and /out/dir/admin.css.

Specify dir containing css_bundler_conf.py with -c argument:

css-bundler -c path/to/config/dir

Notice

Only simple @input './some.css'; syntax is supported at this moment.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc