grunt-contrib-uglify Questions

6

Solved

I used grunt-uglify in my project and I'm working with es6. for some es6 features, such as fat arrow function, it's throwing an error. I think the uglify don't understant that syntax. so do i have ...
Tightlipped asked 18/7, 2016 at 6:5

0

UPDATE, Jan 09, 2012: At first, I thought it was due to the single quotes within the template literal: replyTo: `'MTN Support' <${functions.config().supportgmail.email}>` But now, it's confi...
Microprint asked 8/1, 2021 at 8:10

3

Solved

I have been trying to install Grunt. When I run grunt I receive the following list of messages and warnings: Local Npm module "grunt-contrib-copy" not found. Is it installed? Local Npm module "gru...

3

Solved

I have the following Gruntfile.js: module.exports = function(grunt) { var config = { pkg: grunt.file.readJSON('package.json'), /* Some other tasks... */ uglify: { options: { banner: '/*! ...
Fibroid asked 19/7, 2015 at 16:32

1

I am using angular js (1.6),I have following task in grunt for minification angular modules ngAnnotate: { dist: { files: [{ expand: true, cwd: '.tmp/concat/scripts', src: '*.js', dest: '.tmp...

2

Solved

I'm using gruntjs (which uses uglifyjs) to build my Angularjs app. But uglifyjs still does not support es6, so in corresponding GitHub issue i found this. So now there is uglify-es, which seemingly...
Masterstroke asked 30/6, 2017 at 13:58

1

Solved

I'm developing a library in JS and I want to preserve 'debugger' keyword after using grunt-contrib-uglify because is intentional usage, but default behavior (obviously) is delete all debuggers. My...
Boyd asked 29/1, 2018 at 23:23

2

Solved

I am getting an error, 'Unexpected token: name (bazz)' when my grunt task is running uglify. The only thing I noticed on that line was that I was using the 'let' keyword instead of 'var', so...
Jackshaft asked 17/8, 2015 at 16:12

1

I am running grunt uglify task to minify my js files but it is giving me error when string started with ` character. My string look like this var html = `<div class='list-item'> <span&g...
Spitball asked 18/11, 2016 at 7:14

5

Solved

I am using standard minify/uglify for css/js files and combine multiple files to main.min.css or app.min.js... However my .html file needs to be modified to point to these new file names too in &lt...
Heine asked 2/12, 2013 at 21:5

9

I have a directory like below: /folder/b.js /folder/jQuery.js /folder/a.js /folder/sub/c.js I want to minify all these js files in one js file in order: jQuery.js -> a.js -> b.js -> c.js Q: 1.H...
Malcolmmalcom asked 12/12, 2013 at 1:52

3

Solved

I'm running a grunt task: uglify: { options: { report: 'gzip' }, all: { expand: true, flatten: true, cwd: 'js/', src: ['*.js', '!*.min.js'], dest: 'js/min', ext: '.min.js' } } The fi...
Kino asked 25/10, 2013 at 16:1

3

Solved

I'm using grunt-contrib's concat and uglify modules to process some javascript. Currently if src/js/ is empty, they will still create an (empty) concat'd file, along with the minified version and a...
Kolnick asked 18/3, 2014 at 0:5

2

I have a grunt tasks to concat and minify all my javascript files into one single file and the javascript file is in dist folder. "dist/<%= pkg.name %>.min.js'" "Gruntfile.js" module.exports =...

5

Solved

I have not found a good way to grunt-uglify multiple script files spread over multiple folders while keeping the folder structure including the uglified files intact. The only reason I want to do t...
Tyrocidine asked 26/2, 2014 at 15:31

1

Solved

Goal My goal is to concatenate all my css,js files and minify all of them. I can minify my concat.js, but I'm struggling trying to minify my concat.css. Gruntfile.js module.exports = function(grun...
Gillum asked 11/5, 2015 at 16:40

2

Solved

I use concat to merge JS files into one file and uglify to minimize the JavaScript. How can I create a sourcemaps file that uses the source JS files? My current gruntfile: concat: { options: { ...

2

Solved

When running uglify, I need to make it ignore certain files and folders, but still scan the entire folder structure recursively. I have a concat task that concats together all of my plugins and ma...
Pyotr asked 16/1, 2014 at 15:34

2

Solved

Is there a way to combine and minify all bower installed libraries into 1 file automatically? First I tried the most basic approach: combine all .js files from all subdirectories: uglify: { opti...
Pretentious asked 15/8, 2014 at 6:49

2

Solved

Here is my Gruntfile.js module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), uglify: { options: { mangle: true } build: { src: "js/*.js", dest:...
Ohmage asked 11/1, 2014 at 12:43
1

© 2022 - 2024 — McMap. All rights reserved.