fix css minify and hash
This commit is contained in:
		
							
								
								
									
										26
									
								
								gulpfile.js
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								gulpfile.js
									
									
									
									
									
								
							@@ -199,16 +199,12 @@ var buildStyles = function (done) {
 | 
				
			|||||||
				remove: true
 | 
									remove: true
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
		]))
 | 
							]))
 | 
				
			||||||
		.pipe(header(banner.main, {package: package}))
 | 
					 | 
				
			||||||
		.pipe(dest(paths.styles.output))
 | 
					 | 
				
			||||||
		//.pipe(rename({suffix: '.min'}))
 | 
							//.pipe(rename({suffix: '.min'}))
 | 
				
			||||||
		.pipe(postcss([
 | 
							.pipe(postcss([
 | 
				
			||||||
			minify({
 | 
								minify()
 | 
				
			||||||
				discardComments: {
 | 
					 | 
				
			||||||
					removeAll: true
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
			})
 | 
					 | 
				
			||||||
		]))
 | 
							]))
 | 
				
			||||||
 | 
							.pipe(header(banner.main, {package: package}))
 | 
				
			||||||
 | 
							.pipe(hashsrc({build_dir:paths.output,src_path:'src',hash_len:"6",query_name:"v"}))
 | 
				
			||||||
		.pipe(dest(paths.styles.output));
 | 
							.pipe(dest(paths.styles.output));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@@ -246,19 +242,6 @@ var updateAssetVersion = function (done) {
 | 
				
			|||||||
		.pipe(dest(paths.output));
 | 
							.pipe(dest(paths.output));
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// updates version in all assets
 | 
					 | 
				
			||||||
var updateCssVersion = function (done) {
 | 
					 | 
				
			||||||
	return src(paths.styles.input)
 | 
					 | 
				
			||||||
		.pipe(hashsrc({build_dir:paths.output,src_path:'src',hash_len:"6",query_name:"v"}))
 | 
					 | 
				
			||||||
		.pipe(dest(paths.styles.output));
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// updates version in all assets
 | 
					 | 
				
			||||||
var updateCssVersion = function (done) {
 | 
					 | 
				
			||||||
	return src(paths.styles.input)
 | 
					 | 
				
			||||||
		.pipe(hashsrc({build_dir:paths.output,src_path:'src',hash_len:"6",query_name:"v"}))
 | 
					 | 
				
			||||||
		.pipe(dest(paths.styles.output));
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
// Watch for changes to the src directory
 | 
					// Watch for changes to the src directory
 | 
				
			||||||
var startServer = function (done) {
 | 
					var startServer = function (done) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -303,11 +286,10 @@ exports.default = series(
 | 
				
			|||||||
		copyFiles,
 | 
							copyFiles,
 | 
				
			||||||
		buildScripts,
 | 
							buildScripts,
 | 
				
			||||||
		lintScripts,
 | 
							lintScripts,
 | 
				
			||||||
		buildStyles,
 | 
					 | 
				
			||||||
		buildSVGs
 | 
							buildSVGs
 | 
				
			||||||
	),
 | 
						),
 | 
				
			||||||
 | 
						buildStyles,
 | 
				
			||||||
	updateAssetVersion,
 | 
						updateAssetVersion,
 | 
				
			||||||
	updateCssVersion,
 | 
					 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Watch and reload
 | 
					// Watch and reload
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8037,7 +8037,7 @@ body {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
@media screen and (max-width:450px) {
 | 
					@media screen and (max-width:450px) {
 | 
				
			||||||
    .marginAuto {
 | 
					    .marginAuto {
 | 
				
			||||||
        margin-bottom: 0px!important;
 | 
					        margin-bottom: 0!important;
 | 
				
			||||||
        width: 100%!important;
 | 
					        width: 100%!important;
 | 
				
			||||||
        border-radius: 2px 2px 0 0;
 | 
					        border-radius: 2px 2px 0 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user