Comments (2)
Thank you 🙂, the thing is css-b64-images can't process such files, so they will be minified only without images bundling. Fixed with 415b9b8. Landed in v4.1.1 🎉.
If you interested in embedding images of such files in base64
submit an issue to css-base64-images
repo.
coderaiser@cloudcmd:~/minify$ minify 1.css
[ Error: Skip data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E External file.
at base64img (/home/coderaiser/minify/node_modules/css-b64-images/lib/css-b64-images.js:49:17)
at iterate (/home/coderaiser/minify/node_modules/css-b64-images/lib/css-b64-images.js:101:5)
at forEachSeries (/home/coderaiser/minify/node_modules/css-b64-images/lib/css-b64-images.js:115:3)
at fromString (/home/coderaiser/minify/node_modules/css-b64-images/lib/css-b64-images.js:42:3)
at Promise (internal/util.js:290:30)
at new Promise (<anonymous>)
at fromString (internal/util.js:289:12)
at module.exports (/home/coderaiser/minify/lib/img.js:29:12)
at /home/coderaiser/minify/node_modules/try-to-catch/lib/try-to-catch.js:6:31 ]
Is it works for you?
from minify.
Awesome work @coderaiser!
from minify.
Related Issues (20)
- Benchmarks? HOT 2
- Minify removes top-level js functions because it's "unused" HOT 4
- Class name minification should not be done by default. HOT 2
- Invalid minification of '+' unary prefix operator HOT 2
- Invalid minification of computed method names HOT 4
- Invalid minification of generators HOT 11
- Invalid yield statement minification HOT 1
- Object.keys turned into "keys" HOT 3
- Can you also support mifinfy a markdown .md file? HOT 4
- Wrong execution order HOT 4
- Parentheses around increment operator are discarded HOT 2
- unable to compress js files containing Chinese HOT 3
- Bug: transform code to unsafe code HOT 20
- SyntaxError when using v10.5.2 on node v14.16.1 HOT 11
- Minification error `[email protected]` doesn't respect double quotes and convert it all to single quotes HOT 6
- Incorrect javascript produced for nested single line if..else statements. v10.3.0-v11.0.1 HOT 1
- Order of operations not preserved when using classes or switch statement HOT 3
- Incorrect code generated using template literals HOT 2
- BUG: After release v11.1.1, all HTML files are exported completelly in blank HOT 3
- [Rule "for-of/for-each"] TypeError: Property alternate of ConditionalExpression expected node to be of a type ["Expression"] but instead got undefined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minify.