| 
					
				 | 
			
			
				@@ -16,7 +16,7 @@ module.exports = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     publicPath: process.env.NODE_ENV === 'sit' ? '/sc-operation' : '/', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     productionSourceMap: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     filenameHashing: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    chainWebpack: config => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    chainWebpack: (config) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 配置别名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         config.resolve.alias 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             .set('@', resolve('src')) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -31,11 +31,11 @@ module.exports = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             .use('style-vw-loader') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             .loader('style-vw-loader') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             .options({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                viewportWidth: 1920,//传参 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                viewportWidth: 1920 //传参 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 配置每次打包浏览器缓存文件名的随机性 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const filename = path.posix.join('js', `${new Date().getTime()}_[name].js`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        config.mode('production').devtool(false).output.filename(filename).chunkFilename(filename) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // const filename = path.posix.join('js', `${new Date().getTime()}_[name].js`); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // config.mode('production').devtool(false).output.filename(filename).chunkFilename(filename) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 配置全局样式变量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     css: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -58,11 +58,11 @@ module.exports = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //         resources: path.relative(__dirname, '../src/assets/css/punlic-style.scss') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        extract: { // 打包后css文件名称添加时间戳 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            filename: `css/[name].${new Date().getTime()}.css`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // extract: { // 打包后css文件名称添加时间戳 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     filename: `css/[name].${new Date().getTime()}.css`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //     chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     configureWebpack: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         externals: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -88,7 +88,7 @@ module.exports = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ws: true, // 代理的WebSockets 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 changeOrigin: true, // 允许websockets跨域 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 pathRewrite: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    //  "^/sc-user-auth": ""  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    //  "^/sc-user-auth": "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             '/sc-user-center': { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -97,7 +97,7 @@ module.exports = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 changeOrigin: true, // 允许websockets跨域 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 logLevel: 'debug', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 pathRewrite: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    //  "^/sc-user-center": ""  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    //  "^/sc-user-center": "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             '/sc-community': { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -144,30 +144,30 @@ module.exports = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 pathRewrite: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // "^/zoniot-water": "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pluginOptions: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        "postcss-import": {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        "postcss-url": {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        "postcss-aspect-ratio-mini": {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        "postcss-write-svg": { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'postcss-import': {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'postcss-url': {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'postcss-aspect-ratio-mini': {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'postcss-write-svg': { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             utf8: false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        "postcss-cssnext": {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        "postcss-px-to-viewport": { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            viewportWidth: 1920,     //  视窗的宽度,对应的是我们设计稿的宽度,移动端一般是750,如果是pc端那就是类似1920这样的尺寸 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            viewportHeight: 1080,    // 视窗的高度,移动端一般指定1334,也可以不配置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            unitPrecision: 3,       // 指定`px`转换为视窗单位值的小数位数(很多时候无法整除) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            viewportUnit: 'vw',    // 指定需要转换成的视窗单位,建议使用vw 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'postcss-cssnext': {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'postcss-px-to-viewport': { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            viewportWidth: 1920, //  视窗的宽度,对应的是我们设计稿的宽度,移动端一般是750,如果是pc端那就是类似1920这样的尺寸 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            viewportHeight: 1080, // 视窗的高度,移动端一般指定1334,也可以不配置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            unitPrecision: 3, // 指定`px`转换为视窗单位值的小数位数(很多时候无法整除) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            viewportUnit: 'vw', // 指定需要转换成的视窗单位,建议使用vw 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //   selectorBlackList: ['.ignore', '.hairlines'],  // 指定不转换为视窗单位的类,可以自定义,可以无限添加,建议定义一至两个通用的类名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            minPixelValue: 1,      // 小于或等于`1px`不转换为视窗单位,你也可以设置为你想要的值 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            mediaQuery: false      // 允许在媒体查询中转换`px` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            minPixelValue: 1, // 小于或等于`1px`不转换为视窗单位,你也可以设置为你想要的值 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            mediaQuery: false // 允许在媒体查询中转换`px` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        "postcss-viewport-units": {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        "cssnano": { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            preset: "default", // 设置成default将不会启用autoprefixer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "postcss-zindex": false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'postcss-viewport-units': {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cssnano: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            preset: 'default', // 设置成default将不会启用autoprefixer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'postcss-zindex': false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 |