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

npm run build后文件路径好像不对 #43

Closed
YTU94 opened this issue Oct 20, 2017 · 6 comments
Closed

npm run build后文件路径好像不对 #43

YTU94 opened this issue Oct 20, 2017 · 6 comments

Comments

@YTU94
Copy link

YTU94 commented Oct 20, 2017

npm run build后产生的index_prod.html和webpack配置的打包生产的/dist/目录下的文件不对应,这是webpack dev配置有问题嘛,还是我的操作不对呀?

@lison16
Copy link
Contributor

lison16 commented Oct 20, 2017

你需要修改webpack.prod.config.js里的output.publicPath参数

@YTU94
Copy link
Author

YTU94 commented Oct 20, 2017

你这里是你们的github地址,我改成本地路径,可是js文件和chunk.js文件过多,index_prod.html这里的引入文件是不是也要改啊,新手谢谢。

@YTU94
Copy link
Author

YTU94 commented Oct 20, 2017

我看到下面的模板了,我试试。

@ShawshankLin
Copy link

/dist/为什么配置github地址???这个文档最好说下,,不然不知道怎么改

@ShawshankLin
Copy link

为什么我使用npm run build,,走的webpack.dev.config.js的配置,不是webpack.prod.config

@lison16
Copy link
Contributor

lison16 commented Nov 1, 2017

走dev的话就不会编译打包了

@lison16 lison16 closed this as completed Nov 1, 2017
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