1 | const path = require('path')
|
2 |
|
3 | module.exports = {
|
4 | mode: 'production',
|
5 | entry: {
|
6 | app: ['./index.js'],
|
7 | },
|
8 | output: {
|
9 | library: 'beta',
|
10 | libraryTarget: 'umd',
|
11 | globalObject: "typeof self !== 'undefined' ? self : this",
|
12 | path: path.resolve(__dirname, 'dist'),
|
13 | filename: 'ajax.js',
|
14 | },
|
15 | }
|