executablebooks / web-compile Goto Github PK
View Code? Open in Web Editor NEWA CLI to compile/minify SCSS & JS, and associated pre-commit hook.
License: MIT License
A CLI to compile/minify SCSS & JS, and associated pre-commit hook.
License: MIT License
There is a bug in Jinja2 v2 with the newer release of MarkupSafe from 2.0 to 2.1. If you install Jinja2 version 2.11.3
, as is pinned in web-compile's setup.py
, it will install MarkupSafe 2.1.1. This will lead to an error when you import Jinja2.
Create a Python environment with Jinja 2.11.3 installed:
$ conda create --name test python=3.8 jinja2=2.11.3
Run the python interpreter and import jinja2
:
$ python
Import jinja2:
>>> import jinja2
File "/Users/kpaul/Software/miniconda3/envs/webcompile/lib/python3.10/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/Users/kpaul/Software/miniconda3/envs/webcompile/lib/python3.10/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/Users/kpaul/Software/miniconda3/envs/webcompile/lib/python3.10/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/Users/kpaul/Software/miniconda3/envs/webcompile/lib/python3.10/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/Users/kpaul/Software/miniconda3/envs/webcompile/lib/python3.10/site-packages/markupsafe/__init__.py)
Alternatively, you can simply create a python environment with web-compile
installed and try running web-compile
from the command-line. The same error will occur.
Python: 3.8
Jinja2: 2.11.3
MarkupSafe: 2.1.1
We should make a PR here https://github.com/pre-commit/pre-commit.com to make scss-compile appear on https://pre-commit.com/hooks.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.