postcss-partial-import
postcss-partial-import copied to clipboard
Node#before is deprecated. Use Node#raws.before
npm install [email protected]
Node#before is deprecated. Use Node#raws.before
(node:3276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot set property 'parent' of undefined
(node:3276) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:3276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot set property 'parent' of undefined
(node:3276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot set property 'parent' of undefined
(node:3276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: Cannot set property 'parent' of undefined
(node:3276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): TypeError: Cannot set property 'parent' of undefined
(node:3276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): TypeError: Cannot set property 'parent' of undefined
(node:3276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): TypeError: Cannot set property 'parent' of undefined
(node:3276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 8): TypeError: Cannot set property 'parent' of undefined
var gulp = require("gulp"),
sourcemaps = require("gulp-sourcemaps"),
postcssgulp = require("gulp-postcss"),
precss = require("precss");
gulp.task("css", function () {
var processors = [precss({
"lookup": false,
"mixins": false,
"variables": false,
"media": false,
"properties": false,
"minmax": false,
"color": false,
"nesting": false,
"nested": false,
"selectors": false,
"atroot": false,
"matches": false,
"not": false,
"extend": false
})];
return gulp.src("./src/style.css")
.pipe(sourcemaps.init())
.pipe(postcssgulp(processors))
.pipe(sourcemaps.write("."))
.pipe(gulp.dest("./css"));
});
gulp.task("default", ["css"]);