wiledal / gulp-include

Enables functionality similar to that of snockets / sprockets or other file insertion compilation tools.
157 stars 68 forks source link

Importing with require / include error and quotes #48

Open actinetwork opened 9 years ago

actinetwork commented 9 years ago

When we import a JS file with quotes like "`", we have an error.

Example:

--- JS line

throw new Error('selector option must be specified when initializing ' + this.type + ' on the window.document object!')

--- Error with Gulp include ...\assets\js\dev\general.js:63:27: error: unexpected identifier //throw new Error('←[1;31mselector←[0m option must be specified when initializing ' + this.type + ' on the window.document object!')

←[1;31m ^^^^^^^^←[0m


Best regards,

Stéphane