2018-04-19 15:25:31 +08:00
|
|
|
var path = require('path');
|
|
|
|
|
|
2018-09-24 10:36:20 +08:00
|
|
|
module.exports = [{
|
|
|
|
|
mode: 'production',
|
|
|
|
|
entry: './src/weRequest.js',
|
2018-04-19 15:25:31 +08:00
|
|
|
output: {
|
2018-09-24 10:36:20 +08:00
|
|
|
path: path.join(__dirname, 'build'),
|
|
|
|
|
filename: 'weRequest.min.js',
|
|
|
|
|
library: "weRequest",
|
2018-04-19 15:25:31 +08:00
|
|
|
libraryTarget: "commonjs-module"
|
2018-09-24 10:36:20 +08:00
|
|
|
},
|
|
|
|
|
}, {
|
|
|
|
|
mode: 'development',
|
|
|
|
|
entry: './src/weRequest.js',
|
|
|
|
|
output: {
|
|
|
|
|
path: path.join(__dirname, 'build'),
|
|
|
|
|
filename: 'weRequest.js',
|
|
|
|
|
library: "weRequest",
|
|
|
|
|
libraryTarget: "commonjs-module"
|
|
|
|
|
},
|
|
|
|
|
devtool: 'inline-source-map'
|
|
|
|
|
}]
|