const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
configureWebpack: {
plugins: [
new CopyWebpackPlugin([
{
from: path.join(__dirname, "static"),
to: path.join(
__dirname,
"dist",
process.env.NODE_ENV === "production" ? "build" : "dev",
process.env.UNI_PLATFORM,
"/"
)
}
])
]
}
};
网友评论