Explorar el Código

fix: 正式版本去除源 压缩代码

bill-lai hace 3 años
padre
commit
decc0298d5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      rollup.config.js

+ 2 - 2
rollup.config.js

@@ -54,13 +54,13 @@ for (const dir of buildPaths) {
 
 if (process.env.npm_lifecycle_script.includes('production')) {
 	builds.forEach(item => {
-		// item.output.sourcemap = false
+		item.output.sourcemap = false
 		item.plugins = [
 			babel({
 				exclude: "node_modules/**"
 			}),
 			// 压缩代码
-			// uglify()
+			uglify()
 		]
 	})
 }