Skip to main content

Simple CSS bundler in Python.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

css_bundler-0.1.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

css_bundler-0.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file css_bundler-0.1.1.tar.gz.

File metadata

  • Download URL: css_bundler-0.1.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.11.7

File hashes

Hashes for css_bundler-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f58fb92abac33aa6724c094985fc0e2834c074a34ba41b5f0c36fdfc06f66d04
MD5 5f0c3613b7d74e3c4270731301a40e59
BLAKE2b-256 bbaae7942f6502c9f9c7e06af2c404663b31c70e91633428b11518f8a0eadb68

See more details on using hashes here.

File details

Details for the file css_bundler-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: css_bundler-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.11.7

File hashes

Hashes for css_bundler-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b21c591ff07b426a0491ca63002fe546048ff0eb6c6844ab1e766eb268df538a
MD5 14aea8c68707a6dc7c1e8bf6234138e3
BLAKE2b-256 1fec415e52c92c3747db8d20046522f04ff0e59acca21589678fd08f5d251882

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page