https://github.com/massigy/css-injector
https://github.com/massigy/css-injector
bash css shell
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/massigy/css-injector
- Owner: MassiGy
- License: mit
- Created: 2021-11-20T22:26:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-24T22:51:08.000Z (over 3 years ago)
- Last Synced: 2025-02-07T10:53:29.328Z (3 months ago)
- Topics: bash, css, shell
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSS-INJECTOR BASH SCRIPT USAGE GUID
## Description
CSS Injector - Bash Based CSS to Html Injector.This script is designed to take the passed css file, read the passed html file, and then inject the css file code into the html inside a tag as a replace for the <link> tag . The goal behind this command is to load the css inside your html, in order to minimize the http requests on the template rendering (gain more performance and space). The most optemized way to use this tool, is to add it into your build tasks.
## Setup
git clone <this repo url>
--
cd css-injector
--
cp ./css-injector /usr/bin/css-injector
--
// OPTIONAL
which css-injectorThe expected output of the last command is "/usr/bin/css-injector"
##### Note
Now you can run the css-injector command anywhere in your machine.## Benefits of css-inejector
1. Easy to use.
2. Less http requests.
3. Less files to store, more space to gain.
4. Very Modular.## Usage
css-injector <inject_form.css> <inject_to.html>
Exemplescss-inejector style.css index.html
## License
MIT.