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

发布完,想在本地预览,发现 dist/static 目录里面缺少 reset.css, 浏览器也会报错,这个怎么解决? #3

Open
zhaoshuan opened this issue May 11, 2017 · 6 comments

Comments

@zhaoshuan
Copy link

执行 npm run server 没毛病,一切正常,只是想要把打包好的文件单独拿出来,发现dist/static目录 缺少初始化css

@jawil
Copy link
Owner

jawil commented May 11, 2017

有报错的截图吗,我看看报啥错误

@zhaoshuan
Copy link
Author

pic
没跑端口,直接预览dist

@jawil
Copy link
Owner

jawil commented May 11, 2017

当初reset.css没打包。。。把reset.css拷贝进去就行

@zhaoshuan
Copy link
Author

能搞成自动的么? 大牛搞的这套挺好使的,,

@jawil
Copy link
Owner

jawil commented May 11, 2017

你自己先尝试搞一下,照葫芦画瓢,在每个页面引入reset.css就行 @import reset.css from '路径'

@struggle-fish
Copy link

直接运行 npm run server 会有 404 错误。而且localhost:8888 会空白。
image

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

3 participants