2016年10月19日 星期三

up vote 0 down vote accepted jQuery is only designed for use in a browser, and does not support server-side rendering. You'll need to remove jQuery from any of your code that you want to use server-side.

http://stackoverflow.com/questions/39240241/jquery-requires-a-window-with-a-document-in-webpack