Skip to content

Commit 02255da

Browse files
authored
Merge pull request #303 from DigitalSlideArchive/simplify-webpack-helper
Simplify a path resolution in the webpack helper file
2 parents 568999a + f2aecd7 commit 02255da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

histomicsui/web_client/webpack.helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (config) {
1010
to: config.output.path,
1111
toType: 'dir'
1212
}, {
13-
from: path.join(path.resolve(__dirname), 'node_modules', 'sinon', 'pkg', 'sinon.js'),
13+
from: require.resolve('sinon/pkg/sinon.js'),
1414
to: path.join(config.output.path, 'extra', 'sinon.js')
1515
}])
1616
);

0 commit comments

Comments
 (0)