-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
26 lines (24 loc) · 934 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
26 lines (24 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const path = require('path');
const webpack = require('webpack');
module.exports = {
target: 'node',
entry: {
app: './index.js',
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].xiippyposecomsdklight.js',
library: 'xiippyposecomsdklight',
libraryTarget: 'umd', // very important line
umdNamedDefine: true // very important line
},
plugins: [
// new MinifyPlugin()
new webpack.BannerPlugin(`
*******************************************
Lib xiippyposecomsdklight @ https://Xiippy.ai
Developed by and copyrighted to Xiippy.ai.
Copyright 2018-${new Date().getFullYear()} Xiippy.ai. Australian Patents Awarded. International patent pending (end-to-end encrypted receipt and invoice delivery protocol, digital signatures and zero-knowledge anonymously-individualized marketing scheme).
********************************************`)
],
};