vue.config.js中引入
const CopyWebpackPlugin = require(‘copy-webpack-plugin‘)
const path = require(‘path‘);
module.exports = {
publicPath: ‘./‘,
assetsDir: ‘public‘,
productionSourceMap: false,
configureWebpack: {
plugins: [
new CopyWebpackPlugin({
patterns: [
{ from: path.join(__dirname,‘fwInfo.html‘),
to: ‘fwInfo.html‘ },
],
})
],
},
}