Matthew Raymer
1 year ago
3 changed files with 19 additions and 18 deletions
File diff suppressed because one or more lines are too long
@ -1,18 +1,22 @@ |
|||
const path = require('path'); |
|||
|
|||
module.exports = { |
|||
entry: './src/safari-notifications.js', |
|||
output: { |
|||
filename: 'safari-notifications.js', |
|||
path: path.resolve(__dirname, 'dist'), |
|||
library: 'customModule', |
|||
libraryTarget: 'var' |
|||
}, |
|||
mode: 'production', |
|||
target: 'webworker', |
|||
resolve: { |
|||
fallback: { |
|||
"crypto": false // This might be needed if some module tries to access node's crypto, which is not available in browsers
|
|||
entry: './src/safari-notifications.js', |
|||
output: { |
|||
filename: 'safari-notifications.js', |
|||
path: path.resolve(__dirname, 'dist'), |
|||
libraryTarget: 'self' |
|||
}, |
|||
optimization: { |
|||
splitChunks: { |
|||
chunks: 'async' |
|||
} |
|||
}, |
|||
mode: 'production', |
|||
target: 'webworker', |
|||
resolve: { |
|||
fallback: { |
|||
"crypto": false // This might be needed if some module tries to access node's crypto, which is not available in browsers
|
|||
} |
|||
} |
|||
} |
|||
}; |
|||
|
Loading…
Reference in new issue