🌈 style:更改部分模块的样式

This commit is contained in:
Haiyi
2022-10-08 15:20:55 +08:00
parent b878c5ea9d
commit 81268618fd
8 changed files with 108 additions and 72 deletions
+17 -1
View File
@@ -67,6 +67,19 @@ const config = {
router: {
mode: 'hash',
},
// 设置代理服务器转发
// devServer: {
// proxy: {
// '/mp/': {
// target: Domain,
// pathRewrite: {
// '^/mp/': '' // 所以带有/api/请求的链接一律替换为空并追加域名请求
// },
// changeOrigin: true
// }
// }
// }
// },
output: {
filename: 'js/[name].[hash].js',
chunkFilename: 'js/[name].[chunkhash].js',
@@ -79,6 +92,9 @@ const config = {
filename: 'css/[name].[hash].css',
chunkFilename: 'css/[name].[chunkhash].css',
},
devServer: {
https: true
},
publicPath: '/',
staticDirectory: 'static',
postcss: {
@@ -87,7 +103,7 @@ const config = {
config: {},
},
cssModules: {
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
enable: true, // 默认为 false,如需使用 css modules 功能,则设为 true
config: {
namingPattern: 'module', // 转换模式,取值为 global/module
generateScopedName: '[name]__[local]___[hash:base64:5]',