Skip to content
New issue

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

Doesn't minify php files #2

Closed
OverVlad opened this issue Jan 16, 2017 · 1 comment
Closed

Doesn't minify php files #2

OverVlad opened this issue Jan 16, 2017 · 1 comment
Assignees

Comments

@OverVlad
Copy link

OverVlad commented Jan 16, 2017

When i run 'gulp php:build', terminal said: 'Minifying: path/to/files/file.php' but files don't minifying and i didn't see files in my dest folder.

const {phpMinify} = require('@cedx/gulp-php-minify');
gulp.task('php:build', () => gulp.src(path.src.php, {read: false})
.pipe(phpMinify())
.pipe(gulp.dest(path.build.php))
);

Whats problem?

@cedx cedx self-assigned this Jan 16, 2017
@cedx cedx added the bug label Mar 22, 2017
@cedx
Copy link
Owner

cedx commented Mar 24, 2017

To see if a problem occurred, you can subscribe to the error event:

const {phpMinify} = require('@cedx/gulp-php-minify');
gulp.task('php:build', () => gulp.src(path.src.php, {read: false})
  .pipe(phpMinify())
  .on('error', err => console.log(err))
  .pipe(gulp.dest(path.build.php))
);

I think you encountered the "connection refused" error. I've released a new version 2.0.0 that should fix this issue.

See the updated documentation about the new mode option that let you select between "a slow thing that works everytime", and "a fast thing that fails most of the time".

@cedx cedx closed this as completed Mar 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants