Skip to content

Commit

Permalink
fix(mappa.min.js): fix minification problem with es6
Browse files Browse the repository at this point in the history
added uglify-es to minify es6
  • Loading branch information
cvalenzuela committed Sep 6, 2017
1 parent e740ff2 commit 4d0b54a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
3 changes: 1 addition & 2 deletions dist/mappa.js
Original file line number Diff line number Diff line change
Expand Up @@ -1494,5 +1494,4 @@ exports.Tangram = Tangram;

/***/ })
/******/ ]);
});
//# sourceMappingURL=mappa.js.map
});
1 change: 0 additions & 1 deletion dist/mappa.js.map

This file was deleted.

3 changes: 1 addition & 2 deletions dist/mappa.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/mappa.min.js.map

This file was deleted.

10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"test": "mocha test/index.test.js --compilers js:babel-register",
"cover": "nyc npm t",
"prebuild": "rimraf dist",
"build": "npm-run-all --parallel build:*",
"build": "npm-run-all build:*",
"build:main": "webpack --output-filename mappa.js",
"build:min": "webpack --output-filename mappa.min.js -p",
"build:min": "uglifyjs dist/mappa.js -o dist/mappa.min.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
Expand Down Expand Up @@ -58,6 +58,7 @@
"raw-loader": "0.5.1",
"rimraf": "2.6.1",
"semantic-release": "6.3.6",
"uglify-es": "3.0.28",
"webpack": "2.6.1",
"webpack-dev-server": "2.4.5"
},
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ export default {
filename: "mappa.js",
library: 'Mappa'
},
devtool: 'source-map',
module: {
loaders: [
{ test: /\.js$/, loader: 'babel-loader', include },
{ test: /\.json$/, loader: 'json', include },
{ test: /\.json$/, loader: 'json', include }
],
}
}

0 comments on commit 4d0b54a

Please sign in to comment.