This commit is contained in:
eric
2024-03-04 21:10:02 +08:00
parent 99dcaf3cc9
commit 8c62fd0eb0
57 changed files with 90 additions and 2593 deletions

View File

@@ -44,28 +44,53 @@ const config = {
},
},
},
// h5: {
// // esnextModules: [/@antmjs[\/]vantui/],
// publicPath: "/",
// staticDirectory: "static",
// postcss: {
// autoprefixer: {
// enable: true,
// config: {},
// },
// cssModules: {
// enable: false, // 默认为 false如需使用 css modules 功能,则设为 true
// config: {
// namingPattern: "module", // 转换模式,取值为 global/module
// generateScopedName: "[name]__[local]___[hash:base64:5]",
// },
// },
// },
// },
h5: {
publicPath: "/",
staticDirectory: "static",
esnextModules: [/@antmjs[\/]vantui/],
postcss: {
autoprefixer: {
enable: true,
config: {
}
},
pxtransform: {
enable: true,
config: {},
},
cssModules: {
enable: false, // 默认为 false如需使用 css modules 功能,则设为 true
config: {
namingPattern: "module", // 转换模式,取值为 global/module
generateScopedName: "[name]__[local]___[hash:base64:5]",
},
},
},
namingPattern: 'module', // 转换模式,取值为 global/module
generateScopedName: '[name]__[local]___[hash:base64:5]'
}
}
}
},
alias: {
'@/utils': path.resolve(__dirname, '..', 'src/utils'),
}
};
// export const envConfig="prod-4go74loxa6ac34a8"
module.exports = function (merge) {
if (process.env.NODE_ENV === "development") {
return merge({}, config, require("./dev"));