fix: hardSourcePlugin优化

This commit is contained in:
万纯 2021-02-05 14:12:05 +08:00
parent d5bfc61b01
commit c29f705bd8

View File

@ -23,7 +23,7 @@ export default (api) => {
environmentHash: {
root: cwd,
files: ['package-lock.json', 'yarn.lock'].concat(
Array.isArray(configFiles) ? configFiles : [configFiles]
Array.isArray(configFiles) ? configFiles : []
)
},
...api.config.hardSource || {}