Skip to content

Instantly share code, notes, and snippets.

@simono simono/.gitignore
Last active Dec 4, 2015

What would you like to do?
"dependencies": {
"express": "^4.13.3",
"postcss-css-variables": "^0.5.1",
"postcss-middleware": "^1.0.0"
body {
background-color: var(--my-var);
'use strict';
const path = require('path');
const express = require('express');
const postcssMiddleware = require('postcss-middleware');
const cssvariables = require('postcss-css-variables');
const app = express();
const server = app.listen(7000);
app.use('/css', postcssMiddleware({
src: function(req) {
return ['vars.css', 'test.css']
plugins: [cssvariables]
:root {
--my-var: green;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.