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

document is not defined #6

Closed
chen900112 opened this issue Jan 16, 2019 · 3 comments
Closed

document is not defined #6

chen900112 opened this issue Jan 16, 2019 · 3 comments

Comments

@chen900112
Copy link

image

image
image
开发环境正常的,生产环境访问会出现这样的问题
vue ssr document is not defined
webpack-contrib/mini-css-extract-plugin#90

我尝试使用里面的方案去修复但是没有成功
希望能够关注

@lentoo
Copy link
Owner

lentoo commented Jan 17, 2019

在vue.config.js中,添加
css:{
extract:false
}

@chen900112
Copy link
Author

@lentoo 直接用 vue-style-loader 么,抽取有解决方案么 mini-css-extract-plugin
尝试了这个方案也没用
会报一个 替换错误
image
image

@lentoo
Copy link
Owner

lentoo commented Jan 17, 2019

没尝试过这个方案,不好意思,帮不了你

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

2 participants