mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
25 lines
398 B
JavaScript
25 lines
398 B
JavaScript
|
|
'use strict'
|
||
|
|
|
||
|
|
const { resolve } = require('path')
|
||
|
|
|
||
|
|
const config = {
|
||
|
|
mode: 'production',
|
||
|
|
entry: './src/app.js',
|
||
|
|
output: {
|
||
|
|
path: resolve(__dirname, './dist'),
|
||
|
|
filename: 'app.commonjs.js',
|
||
|
|
libraryTarget: 'commonjs2'
|
||
|
|
},
|
||
|
|
module: {
|
||
|
|
rules: [
|
||
|
|
{
|
||
|
|
test: /\.js$/,
|
||
|
|
use: 'babel-loader',
|
||
|
|
exclude: /node_modules/
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = config
|