我有一个针对此问题的测试仓库( Link )
我认为这是本地化文件的问题。 我使用react-intl。
开发版本效果很好。
什么是1.bundle.js ? 我认为这是本地化文件。 ( 一些信息 )。 我该如何解决?
问题出在生产配置中。 我忘记了publicPath设置。
...
output: {
path: path.join(__dirname, 'production/public/'),
filename: 'bundle.js',
publicPath: '/' // this will make sure that all statics are hit at '/' route
},
...
拉取请求链接