Skip to content

Commit

Permalink
fix: further resolve webpackConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Chieffo committed Dec 14, 2021
1 parent 7caa2a9 commit fb30f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export async function parseWebpackConfig (
await import(configPath).then((config) => {
webpackConfig = config
})
return webpackConfig
} catch (e) {
if (e.message.includes(configPath)) {
console.error(`\nFailed to parse webpack config from default file path: ${configPath}.`)
} else {
throw e
}
}
return webpackConfig
}
// if webpack.config.js not exists in ${__dirname}/webpack.config.js, scan folder ${__dirname}/build/
const dir = path.dirname(configPath)
Expand Down

0 comments on commit fb30f98

Please sign in to comment.