node.js - Unable to execute chunkfile function of blessc module of npm Node js -
brief: building node function chunk huge css
approach:
function splitfiles(source) { chunkfile(source, { sourcemaps: true }).then(function(parsedcss) { console.log("complete!"); }); } splitfiles(source);
error:
referenceerror: chunkfile not defined
i rookie @ node js. appretiated.
note: have node , bless installed. able chunk files using dos notation. want use api approach.
update:
var bl = require('bless'); //also tried require('blessc') function splitfiles(source) { bl.chunkfile(source, { sourcemaps: true }).then(function(parsedcss) { console.log("complete!"); }); } splitfiles(source);
error:
error: cannot find module 'blessc'
Comments
Post a Comment