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
The text was updated successfully, but these errors were encountered:
上课的时候用到的package.json
{ "name": "web", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-preset-env": "^1.7.0", "gulp": "^3.9.1", "gulp-babel": "^7.0.1", "gulp-uglify": "^3.0.1", "pump": "^3.0.0" } }
Sorry, something went wrong.
上课时用到的gulpfile.js
const gulp = require('gulp'); const uglify = require('gulp-uglify'); const babel = require('gulp-babel'); const pump = require('pump'); gulp.task('default',function(){ console.log('ok'); }) gulp.task('compress', function (cb) { pump([ gulp.src('js/*.js'), babel({ "presets": ["env"] }), uglify(), gulp.dest('dist') ], cb ); });
No branches or pull requests
The text was updated successfully, but these errors were encountered: