Example for atomify-css#43 with rework-inherit
git clone git@gist.github.com:/38247f091ffba4951336.git atomify-css-fail
cd atomify-css-fail
npm install
node build.js
Fails with:
[Error: Failed to extend from %default.]
node_modules/ | |
dist/ |
var css = require('atomify-css') | |
var opts = { | |
entry: './index.css', | |
plugins: [ | |
['rework-inherit'] | |
] | |
} | |
css(opts, function (err, src) { | |
console.error(err); | |
console.log(src); | |
}) |
%default { | |
color: #fff; | |
} |
@import './default.css'; | |
@import './span.css'; |
// Nothing here |
{ | |
"name": "atomify-css-testcase", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"build": "node build.js" | |
}, | |
"author": "", | |
"license": "", | |
"dependencies": { | |
"atomify-css": "^3.3.1", | |
"rework-inherit": "^0.2.3" | |
}, | |
"atomify": { | |
"js": { | |
"entry": "index.js" | |
}, | |
"css": { | |
"entry": "index.css", | |
"plugins": [ | |
[ | |
"rework-inherit" | |
] | |
] | |
} | |
} | |
} |
span { | |
background: #fff; | |
inherit: %default; | |
} |