Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack gulp UglifyJsPlugin error. #440

Closed
hetz opened this issue Dec 19, 2016 · 0 comments
Closed

webpack gulp UglifyJsPlugin error. #440

hetz opened this issue Dec 19, 2016 · 0 comments

Comments

@hetz
Copy link
Contributor

hetz commented Dec 19, 2016

when I use gulp-uglify, get this message: Unexpected character '`''

I find my fileName: '/Users/htz/WebstormProjects/wt-mobile/www-prod/view/m/static/dist/m-build.js',goto lineNumber: 56315,
that look like require include exGantt.md ?

/* 227 */
/***/ function(module, exports) {

	```
	gantt
	    dateFormat yyyy-mm-dd
	    title Adding gantt diagram functionality to mermaid

so when I remove change /mermaid/src/d3.js

if (require) {

everythiny is finel.

{ Error
at new JS_Parse_Error (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :1534:18)
at js_error (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :1542:11)
at parse_error (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :1667:9)
message: '/Users/htz/WebstormProjects/wt-mobile/www-prod/view/m/static/dist/m-build.js: Unexpected character '`'',
fileName: '/Users/htz/WebstormProjects/wt-mobile/www-prod/view/m/static/dist/m-build.js',
lineNumber: 56315,
stack: 'Error\n at new JS_Parse_Error (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :1534:18)\n at js_error (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :1542:11)\n at parse_error (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :1667:9)\n at Object.next_token [as input] (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :1946:9)\n at next (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :2075:25)\n at expect_token (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :2108:20)\n at expect (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :2113:36)\n at block_ (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :2425:9)\n at eval (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :2401:25)\n at function_ (eval at (/Users/htz/WebstormProjects/wt-mobile/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:1:0), :2407:15)',
showStack: false,
showProperties: true,
plugin: 'gulp-uglify'
}

@hetz hetz closed this as completed Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant