Skip to content

Commit a94bc30

Browse files
committed
fix: correctly load files specified in css
1 parent 2290fb6 commit a94bc30

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ module.exports = (api, options) => {
5454
append: false,
5555
publicPath: false
5656
}])
57+
// FIXME: This is a temporary patch.
58+
// When the following PR is merged into file-loader, modify it to use cssOutputPath and useRelativePath.
59+
// https://github.com/webpack-contrib/file-loader/pull/150
60+
webpackConfig.plugin('extract-css')
61+
.tap(args => {
62+
args[0].filename = '[name].[contenthash:8].css',
63+
args[0].chunkFilename = '[name].[id].[contenthash:8].css'
64+
})
5765
}
5866
})
5967

0 commit comments

Comments
 (0)