jlopezxs / express-inline-css Goto Github PK
View Code? Open in Web Editor NEW:mag: Express middleware to generate inline critical rendering CSS
License: MIT License
:mag: Express middleware to generate inline critical rendering CSS
License: MIT License
Hello there, I have this problem when try using your lib...
Error: Cannot find module './lib/index'
Do you have some idea?
resolved in #6
.
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
npm install --save express-inline-css
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "express-inline-css"
npm ERR! node v4.4.5
npm ERR! npm v3.8.9
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/express-inline-css
npm ERR! 404
npm ERR! 404 'express-inline-css' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/guillem.blanche/code/_/yonunca-api/npm-debug.log
the initial import statement fails and i'm wondering if you mean require because this is node middleware, not a browser app and it requires babel as a dependency to use es6 syntax.
>> /Users/daniel/Dev/nylon-web/node_modules/express-inline-css/src/index.js:1
>> (function (exports, require, module, __filename, __dirname) { import flatten from 'lodash.flatten'
>> ^^^^^^
>> SyntaxError: Unexpected token import
>> at createScript (vm.js:56:10)
>> at Object.runInThisContext (vm.js:97:10)
>> at Module._compile (module.js:542:28)
>> at Object.Module._extensions..js (module.js:579:10)
>> at Module.load (module.js:487:32)
>> at tryModuleLoad (module.js:446:12)
>> at Function.Module._load (module.js:438:3)
>> at Module.require (module.js:497:17)
>> at require (internal/module.js:20:19)
>> at Object.<anonymous> (/Users/daniel/Dev/nylon-web/node_modules/express-inline-css/index.js:1:80)
>> at Module._compile (module.js:570:32)
>> at Object.Module._extensions..js (module.js:579:10)
>> at Module.load (module.js:487:32)
>> at tryModuleLoad (module.js:446:12)
>> at Function.Module._load (module.js:438:3)
>> at Module.require (module.js:497:17)
>> at require (internal/module.js:20:19)
>> at Object.<anonymous> (/Users/daniel/Dev/nylon-web/src/app/core/server.js:5:20)
>> at Module._compile (module.js:570:32)
>> at Object.Module._extensions..js (module.js:579:10)
>> at Module.load (module.js:487:32)
>> at tryModuleLoad (module.js:446:12)
>> at Function.Module._load (module.js:438:3)
>> at Module.require (module.js:497:17)
>> at require (internal/module.js:20:19)
>> at Object.<anonymous> (/Users/daniel/Dev/nylon-web/src/app/nylon.js:12:18)
>> at Module._compile (module.js:570:32)
>> at Object.Module._extensions..js (module.js:579:10)
>> at Module.load (module.js:487:32)
>> at tryModuleLoad (module.js:446:12)
>> at Function.Module._load (module.js:438:3)
>> at Module.require (module.js:497:17)
>> at require (internal/module.js:20:19)
>> at Object.<anonymous> (/Users/daniel/Dev/nylon-web/app.js:7:20)
>> at Module._compile (module.js:570:32)
>> at Object.Module._extensions..js (module.js:579:10)
>> at Module.load (module.js:487:32)
>> at tryModuleLoad (module.js:446:12)
>> at Function.Module._load (module.js:438:3)
>> at Module.runMain (module.js:604:10)
>> at run (bootstrap_node.js:393:7)
>> at startup (bootstrap_node.js:150:9)
>> at bootstrap_node.js:508:3
[nodemon] app crashed - waiting for file changes before starting...
phantomjs is in one of the package dependencies and it fails to build on aws elastic beanstalk – probably need to upgrade dependencies and catch any breaking changes
Add tests and continuous integration to improve the development process.
is there a way to exclude certain routes from having inline styles rendered? they're showing up in our rss feeds.
thanks
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.