You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
564 B

const path = require('path');
function resolve(dir) {
return path.join(__dirname, dir)
}
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
configureWebpack:{
plugins: [
new CopyWebpackPlugin({
patterns: [{
from: path.join(__dirname, 'package_sub'),
to: path.join(__dirname, 'unpackage/dist', process.env.NODE_ENV === 'production' ? 'build' : 'dev',
'mp-weixin', 'package_sub')
}]
})
]
}
}