mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Fixed building static in case of absolute output
path.join is unsafe when using absolute paths after first argument. For resolving from cwd path.resolve function is safe and makes correct results in both cases, using absolute or relative paths.
This commit is contained in:
parent
521a6a430d
commit
5f3c575a59
@ -37,7 +37,7 @@ export default ({
|
||||
devtool: '#cheap-module-source-map',
|
||||
entry: entries,
|
||||
output: {
|
||||
path: path.join(process.cwd(), outputDir),
|
||||
path: path.resolve(process.cwd(), outputDir),
|
||||
filename: '[name].[hash].bundle.js',
|
||||
publicPath: '',
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user