Skip to content

Commit e474caa

Browse files
committed
fix: 优化资源路径配置,移除assetModuleFilename并添加mov格式支持
1 parent ff4e2ef commit e474caa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

office-website/webpack.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ module.exports = {
1313
path: path.resolve(__dirname, 'dist'),
1414
filename: 'bundle.[contenthash].js',
1515
clean: true,
16-
publicPath: baseUrl,
17-
assetModuleFilename: 'assets/[name][ext]'
16+
publicPath: baseUrl
1817
},
1918
module: {
2019
rules: [
@@ -44,7 +43,7 @@ module.exports = {
4443
use: ['style-loader', 'css-loader']
4544
},
4645
{
47-
test: /\.(png|svg|jpg|jpeg|gif)$/i,
46+
test: /\.(png|svg|jpg|jpeg|gif|mov)$/i,
4847
type: 'asset/resource'
4948
}
5049
]

0 commit comments

Comments
 (0)