how to minify js files in order via grunt-contrib-uglify?

Good questions! 1) Uglify will reorder the functions in the destination file so that function definitions are on top and function execution on bottom but it seems that it will preserve the order of the function executions. This means that the function jQuery runs to define its global functions will be put first if you … Read more

How do I run grunt from a different folder than my root project

You can set two parameters –base and –gruntfile From grunt –help: –base Specify an alternate base path. By default, all file paths are relative to the Gruntfile. (grunt.file.setBase) * –gruntfile Specify an alternate Gruntfile. By default, grunt looks in the current or parent directories for the nearest Gruntfile.js or Gruntfile.coffee file. So, you can execute: … Read more

How to workaround “the input device is not a TTY” when using grunt-shell to invoke a script that calls docker run?

Remove the -t from the docker run command: docker run $RUN_ENV_FILE -i –rm –user node -v “$PWD”:/app -w /app yaktor/node:0.39.0 $@ The -t tells docker to configure the tty, which won’t work if you don’t have a tty and try to attach to the container (default when you don’t do a -d).

FontAwesome fails to load fonts locally and in electron app

I had a similar issue (perhaps this answer will help someone). I use Maven to build projects (Java + JS). Maven Filter Plugin corrupted binary font files. I had to add includes and excludes: <resources> <resource> <directory>${project.sources}</directory> <filtering>true</filtering> <excludes> <exclude>**/*.woff</exclude> <exclude>**/*.ttf</exclude> </excludes> </resource> <resource> <directory>${project.sources}</directory> <filtering>false</filtering> <includes> <include>**/*.woff</include> <include>**/*.ttf</include> </includes> </resource> </resources>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)