Skip to content

Commit

Permalink
fix: web-work path calculated wrongly
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Feb 16, 2023
1 parent 13e3aca commit 904475a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, './dist/static'),
filename: `[name]${isProd ? '.[contenthash]' : ''}.js`,
publicPath: `${!isProd ? `http://localhost:${devServerPort}/` : 'static/'}`,
publicPath: `${!isProd ? `http://localhost:${devServerPort}/` : 'auto'}`,
chunkFilename: '[contenthash].chunk.js',
},
resolve: {
Expand Down Expand Up @@ -72,6 +72,7 @@ module.exports = {
minimizer: [isProd && `...`, isProd && new CssMinimizerPlugin()].filter(Boolean),
chunkIds: 'named',
splitChunks: {
hidePathInfo: true,
cacheGroups: {
vendor: {
test: /node_modules/,
Expand Down

0 comments on commit 904475a

Please sign in to comment.