We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
確認是否安裝過 Gulp
$ npm -g ls --depth=0
Npm Global Install Gulp
$ npm install -g gulp
gulp.task('mytask', function () { console.log('執行 default 的任務'); });
$ gulp mytask
.pipe(header('\ufeff'))
.pipe(replace(/ReplaceByGulp/ig, 'new text'))
// bundle.config.js module.exports = { bundle: { main: { scripts: [ './content/js/foo.js', './content/js/baz.js' ], styles: './content/**/*.css' }, vendor: { scripts: './bower_components/angular/angular.js' } }, copy: './content/**/*.{png,svg}' };
gulp.js 中加入
gulp.task('bundle', function() { return gulp.src('./bundle.config.js') .pipe(bundle()) .pipe(gulp.dest('./public')); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Install
確認是否安裝過 Gulp
Npm Global Install Gulp
Usage
Create gulpfile.js
執行 gulp
plugin
Encoding problems with gulp on Windows,中文亂碼問題解決
可運用 regex replace,取代檔案中的指定文字
gulp-rename provides simple file renaming methods.
先創建 bundle.config.js
gulp.js 中加入
Reference
The text was updated successfully, but these errors were encountered: