JavaScript How to debug Gruntfile.js? grunt debug gruntfile,how to debug gruntfile.js

First your grunt config has 2 syntax errors:

project: {
    app: './app',
    output: './dist',
    styles_path: './app/assets/stylesheets',
    styles_output_path: './dist/assets/css'  <== missing comma here
    js_path: './app/assets/js',
    js_output_path: './dist/assets/js',
    images_path: './app/assets/images',
    images_output_path: './dist/assets/images',
},

And here:

uglify: {
    options: {
        mangle: false // Use if you want the names of your functions and variables unchanged
    },
    main: {
        files: {
            '<%= project.js_output_path %>/main.js': '<%= project.js_output_path %>/main.js',
        }
    }
} <== another missing comma here

Secondly you can use Visual Studio Code to debug: Click on the Debug button on the left, create a new configuration file. Change the "program" in configuration to the grunt bin file, like below, then start debugging:

"configurations": [
    {
        "name": "Launch",
        "type": "node",
        "request": "launch",
        "program": "${workspaceRoot}/node_modules//grunt/bin/grunt",
        "stopOnEntry": false,
        "args": [],
        "cwd": "${workspaceRoot}",
        "preLaunchTask": null,
        "runtimeExecutable": null,
        "runtimeArgs": [
            "--nolazy"
        ],
        "env": {
            "NODE_ENV": "development"
        },
        "externalConsole": false,
        "sourceMaps": false,
        "outDir": null
    },
Answer:1

You can use "grunt -v -d" to add verbose mode and debug mode and get more information.

Answer:2

I'm a bit perplexed on what should be a simple fix. I'm running a react-native project on version 0.27.2, and all of my ios.js files successfully import Stylesheet except one. The import looks like ...

I'm a bit perplexed on what should be a simple fix. I'm running a react-native project on version 0.27.2, and all of my ios.js files successfully import Stylesheet except one. The import looks like ...

  1. react native canvas
  2. react native can't find variable
  3. react native cannot call a class as a function
  4. react native cannot read property of undefined
  5. react native canvas draw image
  6. react native cannot find module
  7. react native can't find variable document
  8. react native can't find variable component
  9. react native can't find variable navigation
  10. react native cancel animation
  11. react native cannot find simulator
  12. react native canvas game
  13. react native can't find variable buffer
  14. react native cannot find module template.config
  15. react native canopenurl
  16. react native can't find variable image
  17. react native cancel fetch
  18. react native can't find variable button
  19. react native can't find variable require
  20. react native can't find variable stylesheet

I have an application built in Meteor. I run it locally and it is also deployed on a server. I just found out that the application is not running anymore on Chrome. I am not sure but probably the only ...

I have an application built in Meteor. I run it locally and it is also deployed on a server. I just found out that the application is not running anymore on Chrome. I am not sure but probably the only ...

I'm trying to use and understand the Aurelia ValueConverter in the context of a multi-select form. What I thought would be straight forward, has turned out to be a challenge for me. I have a form to ...

I'm trying to use and understand the Aurelia ValueConverter in the context of a multi-select form. What I thought would be straight forward, has turned out to be a challenge for me. I have a form to ...

  1. aurelia value converter from view

If I try to use web workers through a JavaScript file, Chrome throws an error - Uncaught SecurityError: Failed to create a worker: script at '(path)/worker.js' cannot be accessed from origin 'null'...

If I try to use web workers through a JavaScript file, Chrome throws an error - Uncaught SecurityError: Failed to create a worker: script at '(path)/worker.js' cannot be accessed from origin 'null'...

  1. does chrome allow flash
  2. does chrome allow java
  3. does chrome allow javascript
  4. does chrome allow flash player
  5. does chrome allow cookies
  6. does chrome allow pop ups
  7. why does chrome allow adblock
  8. does google chrome allow cookies
  9. does google chrome allow flash
  10. does chrome support allow-from
  11. does google chrome allow java to run
  12. does google chrome allow javascript
  13. does chromecast allow amazon prime
  14. why does chrome allow pop ups
  15. chrome does not allow flash
  16. chrome does not allow download
  17. chrome does not allow camera
  18. chrome does not allow paste
  19. chrome does not allow http
  20. chrome does not allow idm extension