steedos-platform/test/k6/openapi.insert.update.webpack.config.js

32 lines
683 B
JavaScript

/*
* @Author: baozhoutao@steedos.com
* @Date: 2024-03-27 15:59:45
* @LastEditors: baozhoutao@steedos.com
* @LastEditTime: 2024-03-28 16:06:56
* @Description:
*/
module.exports = {
mode: 'production',
entry: './src/openapi.insert.update.js',
externals: {
"__ENV": "__ENV"
},
output: {
path: __dirname + '/dist',
filename: 'openapi.insert.update.js',
libraryTarget: 'commonjs'
},
module: {
rules: [
{ test: /\.js$/, use: 'babel-loader' },
]
},
stats: {
colors: true,
warnings: false
},
target: "web",
externals: /k6(\/.*)?/,
devtool: 'source-map',
}