azu / azu/gulp-remove-use-strict
无效,还是一样会添加'use strict';
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
我的配置如下:
```javascript
var removeUseStrict = require("gulp-remove-use-strict");
// 压缩js文件
gulp.task('minify-js', function (done) {
return gulp.src(['./public/**/*.js', '!./public/**/*.min.js'])
.pipe(babel({
//将ES6代码转译为可执行的JS代码
presets: ['es2015'] // es5检查机制
}))
.pipe(uglify())
.pipe(removeUseStrict()) //取消严格模式方法("use strict")
.pipe(gulp.dest('./public'));
done();
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported behavior with the shown gulp task and its Babel, Uglify, and removeUseStrict pipeline. Inspect the generated files under public/ and compare the output before and after removeUseStrict; the work is done when the generated JavaScript no longer contains the unwanted 'use strict' directive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100