I want to use summernote as my simple online html editor. But when i use webpack to buildle it and webpack alway report somw warring & error, although summernote support AMD!
CodeMirror
causes those error and warring. But I do not know how to adjust webpck config for it!
I finally got it to compile after adding these loaders,
And installing
codemirror
explicitly. However, I still get a JS error:I don’t know what jQuery library is supposed to add
tooltip
but clearly I don’t have it.OK, I got it working. You need all of this crap too: