支付组件

This commit is contained in:
aixianling
2023-09-26 17:56:17 +08:00
parent 6f3c2a05cc
commit 0a33fe480f
12 changed files with 338 additions and 8060 deletions

View File

@@ -7,8 +7,7 @@ const obfuscateConfig = require('./obfuscator.config')
const pages = {}
function getEntryFile (entryPath) {
let files = fs.readdirSync(entryPath)
return files
return fs.readdirSync(entryPath)
}
const chromeName = getEntryFile(path.resolve(`src/entry`))
@@ -32,20 +31,20 @@ module.exports = {
pages,
filenameHashing: false,
chainWebpack: (config) => {
config.plugin('copy').use(require('copy-webpack-plugin'), [
{
patterns: [
{
from: path.resolve(`src/manifest.${process.env.NODE_ENV}.json`),
to: `${path.resolve('dist')}/manifest.json`
},
{
from: path.resolve(`public/`),
to: `${path.resolve('dist')}/`
}
]
}
])
// config.plugin('copy').use(require('copy-webpack-plugin'), [
// {
// patterns: [
// {
// from: path.resolve(`src/manifest.${process.env.NODE_ENV}.json`),
// to: `${path.resolve('dist')}/manifest.json`
// },
// {
// from: path.resolve(`public/`),
// to: `${path.resolve('dist')}/`
// }
// ]
// }
// ])
},
devServer: {
port: 8080,