gulp.src(...).pide is not a function,有人遇到过没帮忙看一看啊?
文件是这样的:
var gulp = require('gulp');
var postcss = require('gulp-postcss');
var px2rem = require('postcss-px2rem');
gulp.task('default',function(){
var processors = [
px2rem({remUnit:75})
];
return gulp.src('./src/css/mobile.css')
.pide(postcss(processors))
.pide(gulp.dest('./dist/css'))
})
错误信息
PS W:\My-Project\WebSite-Music> npm run build
> website-music@1.0.0 build W:\My-Project\WebSite-Music
> gulp
[18:24:52] Using gulpfile W:\My-Project\WebSite-Music\gulpfile.js
[18:24:52] Starting 'default'...
[18:24:52] 'default' errored after 32 ms
[18:24:52] TypeError: gulp.src(...).pide is not a function
at W:\My-Project\WebSite-Music\gulpfile.js:10:10
at default (W:\My-Project\WebSite-Music\node_modules\undertaker\lib\set-task.js:13:15)
at bound (domain.js:426:14)
at runBound (domain.js:439:12)
at asyncRunner (W:\My-Project\WebSite-Music\node_modules\async-done\index.js:55:18)
at processTicksAndRejections (internal/process/task_queues.js:79:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! website-music@1.0.0 build: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the website-music@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Tver-T\AppData\Roaming\npm-cache\_logs\2020-08-23T10_24_52_522Z-debug.log
PS W:\My-Project\WebSite-Music>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
pide
->pipe