You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
498 B
22 lines
498 B
const path = require('path');
|
|
|
|
module.exports = {
|
|
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
|
|
}
|
|
}
|
|
};
|
|
|