支付组件
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user