JavaScript Jade Minified Javascript not parsed as block of text jade minify javascript

I have a minified app.min.js file which is ~ 80Kb big and contains all javascript code my website requires. If I include this file as script with source pointing to app.min.js everything works fine, no JS errors. But if I try to make a new .jade file and place all javascript code inside so that I can do include javascript.jade I get an error on first line of code which I dont understand why? I also tried using script. instead of just script but I still get an error ( wtf? ) Isnt using script. supposed to force Jade to interpret that as a text block?

How am I supposed to debug this error if all my code (80Kb) of it is in one line? And yes I have tried splitting the code into multiple lines and I get the same error. Yes I have verified everything and I'm not missing space before a line, yet I still get this error..

If someone wants to try here a link to my jade file ( it is an exact copy of my app.min.js except I added script. above it just as Jade needs..) : http://pastebin.com/raw.php?i=F3AqQQL2 Note : please copy paste the file into text editor because Chrome doesnt show spaces in lines.

Warning: missing space before text for line 1 of jade file "/var/www/views/app_js.jade"

Warning: missing space before text for line 1 of jade file "/var/www/views/app_js.jade"

Warning: missing space before text for line 1 of jade file "/var/www/views/app_js.jade"

Warning: missing space before text for line 1 of jade file "/var/www/views/app_js.jade"

Warning: missing space before text for line 1 of jade file "/var/www/views/app_js.jade"

Warning: missing space before text for line 1 of jade file "/var/www/views/app_js.jade"

{ [Error: /var/www/views/app_js.jade:2 1| script. 2| if(!function............

The error I'm getting is : 'Unexpected text ^]'

Answer:1

In my script I am loading an image from an array into a div, then I calculate some style elements to be tuned. The problem is that this works only if I use a timeout function before calculating the ...

In my script I am loading an image from an array into a div, then I calculate some style elements to be tuned. The problem is that this works only if I use a timeout function before calculating the ...

This might be a question more for Jasmine or Angular, but I’m wondering how to use the Loopback-generated Angular services in my tests. I don’t need to test the services themselves, but I need to test ...

This might be a question more for Jasmine or Angular, but I’m wondering how to use the Loopback-generated Angular services in my tests. I don’t need to test the services themselves, but I need to test ...

  1. loopback services angular

How to transform "t=1&m=6&r=2" to {t:1, m:6, r:2} by lodash?

How to transform "t=1&m=6&r=2" to {t:1, m:6, r:2} by lodash?

  1. transform string into list python
  2. transform string into datetime python
  3. transform string into number javascript
  4. transform string into array
  5. transform string into number python
  6. transform string into list
  7. transform string into array javascript
  8. transform string into date javascript
  9. transform string into numeric stata
  10. transform string into json python
  11. transform string into dict python
  12. transform string into array php
  13. transform string into json
  14. transform string into array python
  15. transform string into array js
  16. transform string into int java
  17. transform string into int
  18. transform string into int c++
  19. transform string into variable python
  20. transform string into date stata

I was testing this code out in an asp.net webform as I am looking to split a text into a list or words in javascript and have each added to its own div. http://www.w3schools.com/jsref/tryit.asp?...

I was testing this code out in an asp.net webform as I am looking to split a text into a list or words in javascript and have each added to its own div. http://www.w3schools.com/jsref/tryit.asp?...

  1. javascript split text into lines
  2. javascript split text by newline
  3. javascript split text by space
  4. javascript split text by comma
  5. javascript split text file into lines
  6. javascript split text by delimiter
  7. javascript split text by line break
  8. javascript split text by length
  9. javascript split text into sentences
  10. javascript split text by regex
  11. javascript split text into paragraphs
  12. javascript split text over multiple lines