update
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user