bill-lai 3 jaren geleden
bovenliggende
commit
6b41033c3b
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 2 2
      package.json
  2. 1 1
      rollup.config.js

+ 2 - 2
package.json

@@ -18,8 +18,8 @@
   "main": "./build/potree/potree.js",
   "scripts": {
     "start": "gulp watch -c development",
-    "build": "node main.js",
-    "build-c": "gulp build pack -c production",
+    "build-c": "node main.js",
+    "build": "gulp build pack -c production",
     "postinstall": "npm run build"
   },
   "dependencies": {

+ 1 - 1
rollup.config.js

@@ -54,7 +54,7 @@ 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/**"