Questions tagged [gulp-minify]

19 questions
11
votes
4 answers

Error after Minification of angular js. Error: [$injector:unpr] Unknown provider: eProvider <- e <- makeErrorsDirective

I used Gulp to minify my entire js files. Once minified I got an error like the following: [$injector:unpr] Unknown provider: eProvider <- e <- makeErrorsDirective. I had a Custom directive in my controller file. var myhubdashboardControllers =…
5
votes
2 answers

gulp-minify without rename original files

It is possible minify js files without add -min suffix? I want keep original name. gulp.task("js-external-release", function() { gulp.src(config.vendorJs) .pipe(minify()) .pipe(gulp.dest(config.dist + "/scripts")); });
Ninja.Turtle
  • 127
  • 1
  • 6
2
votes
1 answer

Gulp minified js throws error

We have lots of separate JavaScript files, and of course they are minified into various others in Production. Currently we use Microsoft Ajax Minifier from command line for this task, but the intention is to switch to gulpjs. The minification…
Peter Szekeli
  • 2,712
  • 3
  • 30
  • 44
1
vote
1 answer

Gulp replace files with minified

I have the following tree structure |-src |--assets |---script.js and I want to replace the contents of script.js with their minified version of it WITHOUT renaming it into script-min.js. The code right now…
1
vote
1 answer

Browserify + vue + HTML minify

I'm using elixir together with browserify. In my vue components I include templates from html files, like this: Vue.extend({ template: require('./call.html'), props: { call: { type: Object, required: true …
balping
  • 7,518
  • 3
  • 21
  • 35
0
votes
1 answer

How to disable js Minification in gulp when using npm gulp-minify-inline plugin

Am using gulp-minify-inline plugin to only compress inline javascript and css for sales force pages and component which is basally html code. Am trying to disable the js minification via option. Could any one suggest what attribute i need it as…
0
votes
1 answer

Gulp 4 - CSS minify and rename

I minify CSS generated from SASS. After switch to Gulp 4 have problem rename and minify CSS. All gulp plugins are correctly installed. Everything goes OK except minifying and rename CSS. Here is my code: const browserSync =…
Petr Volny
  • 150
  • 2
  • 12
0
votes
1 answer

Gulp run task with success, but nothing happen and no output files

After reinstalling node js gulp not working properly, but it worked excellent before. I tried a lot of ways and read a lot of issues on github and forums, but nothing... Tried delete globally installed packages and local installed. Reinstall node…
Alex Shul
  • 500
  • 7
  • 22
0
votes
1 answer

gulp-minify creates errors in javascript

My javascript files are throwing errors, because some functions are not loaded correctly, but only in the minified version. Can anybody give me tips on how to find pieces of code that can create errors in "translation" so I can find those pieces and…
bartolaus
  • 63
  • 7
0
votes
2 answers

Minify and compile single file using Gulp

There is a 1-pager website. It consists of index.php that includes numerous sections (other PHP files). Each of the section includes links to JavaScript files. Questions: is it possible to generate a single minified PHP file, that will have a…
0leg
  • 13,464
  • 16
  • 70
  • 94
0
votes
1 answer

gulp-minify is replacing javascript variable name with there value in function call

I have code like: define('identity', function () { // LOT OF CONSTANTS AND USAGE HAS BEEN REMOVED FOR BREVITY 'use strict'; var CREATE_ACCOUNT = 'CreateAccount'; var ACCOUNT = 'Account'; var CONNECT = 'Connect'; var SWITCH =…
Anuj Yadav
  • 980
  • 11
  • 20
0
votes
1 answer

Minifying AngularJS application issues

I have an application written in AngularJS and Bootstrap that works perfectly well, but when I tried to minify it I got problems. The index.html of my app is:
Helia
  • 67
  • 12
0
votes
0 answers

issue with minify html with gulp

I tried gulp-htmlmin and some other packages for minify html but can't minify my html files. cmd err my package.josn: { "name": "asb-with-gulp", "version": "1.0.0", "description": "", "main": "gulpfile.js", "dependencies": { "gulp":…
user7467964
0
votes
1 answer

Why do minfiers reduce to one line

This question is similar to: Why do we have newlines in minified JavaScript? In this case, I would prefer half a dozen or so newlines. Why do minifiers reduce code and style to one line? Even on production code, I might have bugs that I didn't…
Cit5
  • 400
  • 5
  • 19
0
votes
1 answer

$exceptionHandler decorator on strictdi - circular and strictdi errors

I'm having trouble with formatting my $exceptionHandler to strictdi. I'm trying to modify the exceptionhandler in order to log angular errors to our servers and let us know certain pages crash. For the code below, I am having circular dependency…
John
  • 13
  • 2
1
2