Loëck Vézien
7 years ago
No known key found for this signature in database
GPG Key ID: CBCDCE384E853AC4
1 changed files with
2 additions and
2 deletions
-
webpack/internals.config.js
|
|
@ -10,7 +10,7 @@ const dirs = p => |
|
|
|
.filter(f => fs.statSync(path.join(p, f)).isDirectory()) |
|
|
|
.map(d => path.resolve(__dirname, `${p}/${d}`)) |
|
|
|
.reduce((result, value) => { |
|
|
|
const [key] = value.split('/').slice(-1) |
|
|
|
const [key] = value.split(path.sep).slice(-1) |
|
|
|
result[key] = value |
|
|
|
return result |
|
|
|
}, {}) |
|
|
@ -23,7 +23,7 @@ module.exports = webpackMain().then(config => ({ |
|
|
|
entry: dirs(path.resolve(__dirname, '../src/internals')), |
|
|
|
|
|
|
|
resolve: { |
|
|
|
extensions: config.extensions, |
|
|
|
extensions: config.resolve.extensions, |
|
|
|
}, |
|
|
|
|
|
|
|
externals: ['node-hid', ...config.externals], |
|
|
|