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.

47 lines
1.3 KiB

/*
* @Author: hkh 838374358@qq.com
* @Date: 2023-07-13 11:22:52
* @LastEditors: hkh 838374358@qq.com
* @LastEditTime: 2023-09-12 18:04:47
* @FilePath: \smart-and-secure-residence\vue.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const configureWebpack = require("./webpack.config");
const isProduction = process.env.NODE_ENV === "production";
const path = require("path");
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
publicPath: "./",
productionSourceMap: false,
lintOnSave: false,
css: {
sourceMap: !isProduction,
loaderOptions: {
postcss: {
postcssOptions: {
plugins: [
require("postcss-pxtorem")({
rootValue: 100, // 换算的基数
propList: ["*"],
}),
],
},
},
css: {
},
},
},
devServer: {
client: {
logging: "log", //client 控制台显示警告信息
overlay: false,
},
},
configureWebpack,
pluginOptions: {
windicss: {},
},
};