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

37 lines
1.0 KiB

1 month ago
const path = require("path");
module.exports = {
lintOnSave: "warning",
pluginOptions: {
"style-resources-loader": {
preProcessor: "less",
patterns: [
path.resolve(__dirname, "src/assets/style/variable.less"),
path.resolve(__dirname, "src/assets/style/mixin.less")
]
}
},
outputDir: "dist",
devServer: {
port: 8080,
proxy: "http://localhost:19001"
// proxy: "http://localhost:3000"
// proxy: "http://123.56.124.33:3000"
},
pages: {
index: {
// page 的入口
entry: "src/main.js",
// 模板来源
template: "public/index.html",
// 在 dist/index.html 的输出
filename: "index.html",
// 当使用 title 选项时,
// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
title: "加入*****",
// 在这个页面中包含的块,默认情况下会包含
// 提取出来的通用 chunk 和 vendor chunk。
chunks: ["chunk-vendors", "chunk-common", "index"]
}
}
};