Skip to content

Commit

Permalink
feat(web): fix webrender image not show
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Nov 5, 2024
1 parent cf6c1ab commit 8ee86ff
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ module.exports = {
template: path.resolve('./public/index.html'),
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development'),
'process.env': {
NODE_ENV: JSON.stringify('development'),
HOST: JSON.stringify(process.env.DEV_HOST || '127.0.0.1'),
PORT: JSON.stringify(process.env.DEV_PORT || 3000),
},
__PLATFORM__: JSON.stringify(platform),
}),
new CaseSensitivePathsPlugin(),
Expand Down

0 comments on commit 8ee86ff

Please sign in to comment.