初始化产品库
This commit is contained in:
		
							
								
								
									
										22
									
								
								postcss.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								postcss.config.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| const path = require('path') | ||||
| module.exports = { | ||||
|   parser: require('postcss-comment'), | ||||
|   plugins: [ | ||||
|     require('postcss-import')({ | ||||
|       resolve (id, basedir, importOptions) { | ||||
|         if (id.startsWith('~@/')) { | ||||
|           return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3)) | ||||
|         } else if (id.startsWith('@/')) { | ||||
|           return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2)) | ||||
|         } else if (id.startsWith('/') && !id.startsWith('//')) { | ||||
|           return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1)) | ||||
|         } | ||||
|         return id | ||||
|       } | ||||
|     }), | ||||
|     require('autoprefixer')({ | ||||
|       remove: process.env.UNI_PLATFORM !== 'h5' | ||||
|     }), | ||||
|     require('@dcloudio/vue-cli-plugin-uni/packages/postcss') | ||||
|   ] | ||||
| } | ||||
		Reference in New Issue
	
	Block a user