Comments (8)
Ok, apparently one needs to actually include a CDN call from an asset for the plugin not to crash on production mode. Building upon that I'm getting another error after adding this line:
!= CDN("/stylesheets/vendor/bootstrap.css")
to my main base jade layout. Now I'm getting an "unsuccessful upload" error.
Working on this right now.
from express-cdn.
Ok, this is good to be closed.
from express-cdn.
I'm having the same problem. Error: CDN: empty results
isn't a very helpful error. @niftylettuce if you give me some details on what causes that error then I can probably make a PR.
from express-cdn.
I was just getting this issue and started digging into it.
@leostera was basically right. The thing is, my variable definition was "cdn" and not "CDN". express-cdn looks for the latter with a regular expression.
The error makes sense now but perhaps it would be wise not to hardcode "CDN" in there.
from express-cdn.
same thing happened to me.
from express-cdn.
@leostera @thebyrd @mateusz- see release 0.1.4 in NPM
from express-cdn.
@leostera I am getting the same unsuccessful upload error with all the same configuration options - what was your solution? Here is what I am getting:
│info: task=express-cdn, message="css/app.css" was not found on S3 or was modified recently
│unsuccessful upload of image "" to S3
│unsuccessful upload of image "" to S3
....
│unsuccessful upload of image "ng" to S3
│
│events.js:71
│ throw arguments[1]; // Unhandled 'error' event
│ ^
│Error: write EPIPE
│ at errnoException (net.js:770:11)
│ at Object.afterWrite (net.js:594:19)
from express-cdn.
@imrane @leostera have you resolved this? please report back ASAP need to make sure this works, thanks guys!
from express-cdn.
Related Issues (20)
- Express CDN doesn't support video/mp4
- Error when installing express-cdn HOT 2
- Error during install on node 6 due to outdated optipng-bin and jpegtran-bin dependencies HOT 2
- Files do not upload to s3 HOT 2
- BUG : removing the first character of file path HOT 1
- production true is giving errors
- Action required: Greenkeeper could not be activated 🚨
- When Uglify fails, it doesn't tell which file is failing it. HOT 1
- Older version of clean-css leaving truncated files HOT 1
- Error: TypeError: assets.substr is not a function
- Getting error after latest update HOT 2
- File file.js comes to S3 without content. HOT 2
- 0.31 and 0.32 releases are broken by UglifyJS 3.X HOT 2
- In package.json update dependency on 'request' module to 2.88.0
- BUG: timestamp cache not set properly
- Concatenating files doesn't produce a URL-encoded CDN address HOT 2
- Working with vars
- Explicitly define list of assets HOT 1
- Private bucket support
- Asset versioning in production 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 express-cdn.