fix(webpack): support absolute urls in webpack css url/import (#3743)

This commit is contained in:
Daniel Roe 2022-03-17 17:50:06 +00:00 committed by GitHub
parent 0760fffe6c
commit 6342e823a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,10 +163,16 @@ export default {
},
css: {
importLoaders: 0,
url: {
filter: (url: string, resourcePath: string) => !url.startsWith('/'),
},
esModule: false
},
cssModules: {
importLoaders: 0,
url: {
filter: (url: string, resourcePath: string) => !url.startsWith('/'),
},
esModule: false,
modules: {
localIdentName: '[local]_[hash:base64:5]'