代码拉取完成,页面将自动刷新
const path = require("path");
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
// devServer: {
// // 例子中 ·地址· 的根据实际情况来,写
// proxy: {
// "/api": {
// target: "https://bizapi.csdn.net/blink/api",
// changeOrigin: true,
// // pathRewrite: {
// // "^/api": "",
// // },
// },
// },
// },
transpileDependencies: true,
publicPath: "./", // 配置打包后根目录路径(解决scss引入icon,打包后路径错误的问题)
pages: {
index: {
// 修改入口
entry: "examples/main.js",
template: "public/index.html",
filename: "index.html",
},
},
chainWebpack: (config) => {
config.resolve.alias.set("@", path.resolve(__dirname, "examples")); // 设置根目录为 src 文件夹
config.module
.rule("js")
.include.add("/packages")
.end()
.use("babel")
.loader("babel-loader")
.tap((options) => {
return options;
});
},
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。