From 9208bc14ed3340593dde8b8791b7682d885d72f1 Mon Sep 17 00:00:00 2001 From: Prophet Daniel Date: Fri, 10 Nov 2017 11:20:01 -0200 Subject: [PATCH] Update package.json Fixed the error due to the lack of the source maps when debugging the code within the browser. --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 213a39c6..161e0a69 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "scripts": { "clean": "rimraf dist", "start": "npm run serve-watch", - "prep": "typings install && copyfiles analytics.js dist && catw node_modules/material-design-lite/material.min.js node_modules/d3/d3.min.js node_modules/seedrandom/seedrandom.min.js > dist/lib.js", - "build-css": "catw node_modules/material-design-lite/material.min.css styles.css > dist/bundle.css", - "watch-css": "catw node_modules/material-design-lite/material.min.css styles.css -o dist/bundle.css", + "prep": "typings install && copyfiles analytics.js dist && catw node_modules/material-design-lite/material.min.js node_modules/d3/d3.min.js node_modules/seedrandom/seedrandom.min.js > dist/lib.js && copyfiles -u 2 node_modules/material-design-lite/material.min.js.map dist", + "build-css": "catw node_modules/material-design-lite/material.min.css styles.css > dist/bundle.css && copyfiles -u 2 node_modules/material-design-lite/material.min.css.map dist", + "watch-css": "catw node_modules/material-design-lite/material.min.css styles.css -o dist/bundle.css && copyfiles -u 2 node_modules/material-design-lite/material.min.css.map dist", "build-html": "copyfiles index.html dist", "watch-html": "catw index.html -o dist/index.html", "build-js": "browserify src/playground.ts -p [tsify] | uglifyjs -c > dist/bundle.js",