mamboer / hexo-filter-cleanup Goto Github PK
View Code? Open in Web Editor NEWAll in one. Minifier & Optimization plugin for Hexo
License: MIT License
All in one. Minifier & Optimization plugin for Hexo
License: MIT License
xxxiMac:ian root# npm install hexo-filter-cleanup --save
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
[email protected] install /Users/dazkarieh/Public/ian/node_modules/phantomjs-prebuilt
node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-macosx.zip
Saving to /tmp/phantomjs/phantomjs-2.1.1-macosx.zip
Receiving...
Error making request.
Error: connect ETIMEDOUT 52.216.225.16:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1158:14)
Please report this full log at https://github.com/Medium/phantomjs
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/root/.npm/_logs/2018-06-23T13_53_28_185Z-debug.log
ERROR Plugin load failed: hexo-filter-cleanup
Error: Cannot find module 'lodash'
...
at Object. (/Users/matea/Documents/mateayoga.com/node_modules/hexo-filter-cleanup/lib/useref.js:9:31)
I noticed you require it in useref.js but it's not included in the plugin's package.json.
I installed it into my project's package.json and it works now.
I guess you can either add it to the package.json or add the requirement in the docs for users to install.
Thanks for the good work ;)
problem minifying javascript with es6 or contains "const" and more modern javascripts syntax
...more...
INFO hexo-filter-cleanup(HTML): tags/加盐/index.html [ 41.79% saved]
INFO hexo-filter-cleanup(HTML): tags/md5/index.html [ 41.78% saved]
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Parse Error: < in ]
pcattcp -r [-options > out]
Common options:
-l ## length of bufs read from or written to network (default 8192)
-u use UDP instead of TCP
-p ## port number to send to or listen at (default 5001)
-s toggle sinkmode (enabled by default)
sinkmode enabled:
-t: source (transmit) fabricated pattern
-r: sink (discard) all received data
sinkmode disabled:
-t: reads data to be transmitted from stdin
-r: writes received data to stdout
-A align the start of buffers to this modulus (default 16384)
-O start buffers at this offset from the modulus (default 0)
-v verbose: print more statistics
-d set SO_DEBUG socket option
-b ## set socket buffer size (if supported)
-f X format for rate: k,K = kilo{bit,byte}; m,M = mega; g,G = giga
-c -t: send continuously
-r: accept multiple connections sequentially
-R concurrent TCP/UDP multithreaded receiver
Options specific to -t:
-n ## number of source bufs written to network (default 2048)
-D don't buffer TCP writes (sets TCP_NODELAY socket option)
-w ## milliseconds of delay before each write (default 0)
-L ## desired transmit data rate in bytes/second
Options specific to -r:
-B for -s, only output full blocks as specified by -l (for TAR)
-T "touch": access each byte as it's read
</code></pre>
<h1 id="通信双方信息"><a href="#通信双方信息" class="headerlink" title="通信双方信息"></a>通信双方信息</h1><h2 id="接收方"><a href="#接收方" class="headerlink" title="接收方"></a>接收方</h2><pre class=" language-shell"><code class="language-shell">pcattcp -r -c
</code></pre>
.....more......
This isn't necessarily a bug per se, but it was definitely unexpected behavior to update from 1.1.0 to 1.2.0 and have a breaking change.
The favicon that I have set up in our swig
template is not longer displaying: https://github.com/cypress-io/cypress-documentation/blob/develop/themes/cypress/layout/partial/head.swig#L21
Instead another image is displaying as our favicon. It looks to be the image that is configured as our logo. I have no idea how this is now our favicon. https://github.com/cypress-io/cypress-documentation/blob/develop/_config.yml#L18
I suspect it's due to some changes made from this commit d66e21c although I am still tracking it down.
Furthermore, we have hfc_favicons
set to enable: false
, so none of this work should even be done with hexo-filter-cleanup as I understand it.
Granted, we are doing some weird things by assigning hexo config within the initHexo
function.
I am getting this error during my hexo-filter-cleanup in version 1.1.0. Rolled back to 1.0.7 and issue went away.
Unhandled Rejection at: Promise Promise {
<rejected> TypeError: Cannot read property 'length' of undefined
at utils.isFileChanged.then.yes (--/node_modules/hexo-filter-cleanup/lib/js.js:35:52)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7) }
reason: TypeError: Cannot read property 'length' of undefined
at utils.isFileChanged.then.yes (--/node_modules/hexo-filter-cleanup/lib/js.js:35:52)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
master
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
The npm token configured in the NPM_TOKEN
environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/
.
If you are using Two-Factor Authentication, make configure the auth-only
level is supported. semantic-release cannot publish with the default auth-and-writes
level.
Please make sure to set the NPM_TOKEN
environment variable in your CI with the exact value of the npm token.
Good luck with your project ✨
Your semantic-release bot 📦🚀
the optimized images can't be opened by safari, it throws "an error occurred trying to load the resource"
Due to result.code.length
from
Line 35 in 1449890
The error message looks like
(node:18188) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
at utils.isFileChanged.then.yes (C:\msys64\home\Kel\repo\hexo-blog\node_modules\hexo-filter-cleanup\lib\js.js:35:52)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:18188) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
Could you please have a look at this?
Thank you.
I am encountering a new error after updating to version 1.2.1.
During running hexo-filter-cleanup
Unhandled Rejection at: Promise Promise {
<rejected> TypeError: Cannot read property 'length' of undefined
at utils.isFileChanged.then.yes (/root/cypress-documentation/node_modules/hexo-filter-cleanup/lib/js.js:35:52)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7) }
reason: TypeError: Cannot read property 'length' of undefined
at utils.isFileChanged.then.yes (/root/cypress-documentation/node_modules/hexo-filter-cleanup/lib/js.js:35:52)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
Link to our CI logs that failed: https://circleci.com/gh/cypress-io/cypress-documentation/12752
Hello! I've gotten the icons themselves generated, but how do I generate the HTML for it? I've found the html.json file in the favicons node module, but that'd be a bit of a pain to extract and it's not really a good method as you'd have to redo it all if there's changes breaking it.
When hexo s
, the useref works pretty well,
but hexo s -s
, the useref doesn't work, which means, the concat target file return 404 error.
And when hexo g
, the 404 error occurred again, and in the public folder, there are no concat target file generated, but in cli it shows:
INFO hexo-filter-cleanup(USEREF): css/combined.css
...
INFO hexo-filter-cleanup(USEREF): css/combined.js
Relative info is as follows:
$ hexo version
hexo: 3.2.2
hexo-cli: 1.0.2
os: Linux 4.4.16-moby linux x64
http_parser: 2.7.0
node: 6.2.0
v8: 5.0.71.47
uv: 1.9.1
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 57.1
modules: 48
openssl: 1.0.2h$ npm -v
3.8.9$ node -v
v6.2.0
Image compress took a long time within more than 50 posts.
please add cache strategy.
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.