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.
pingAnQiYeWeb/vue.config.js

40 lines
934 B

const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
publicPath: "/",
configureWebpack: {
plugins: [
new CopyWebpackPlugin([
{
from: "node_modules/@liveqing/liveplayer/dist/component/crossdomain.xml",
},
{
from: "node_modules/@liveqing/liveplayer/dist/component/liveplayer.swf",
},
{
from: "node_modules/@liveqing/liveplayer/dist/component/liveplayer-lib.min.js",
to: "js/",
},
// {
// patterns: [{
// from: './public/static', to: 'static'
// }]
// }
]),
],
// externals: {
// 'BMap': 'BMap',
// 'BMap_Symbol_SHAPE_POINT': 'BMap_Symbol_SHAPE_POINT'
// }
},
css: {
loaderOptions: {
sass: {
prependData: `@import "~@/loveflow/assets/index.scss";`,
},
},
},
devServer: {
port: "2911",
},
};