项目中new CopyWebpackPlugin 拷贝插件

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‘ },
                ],
            })
        ],
  },
}

 

项目中new CopyWebpackPlugin 拷贝插件

上一篇:JAVA HDFS API编程二


下一篇:ubuntu20.4安装指定版本php