Skip to content

Commit

Permalink
Merge pull request #5 from azinasili/minify
Browse files Browse the repository at this point in the history
Minify
  • Loading branch information
Azin Asili authored May 9, 2017
2 parents 8f8c6a5 + 5d343c3 commit bf3ab73
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
"es2015",
"stage-2"
],
"env": {
"production": {
"presets": ["babili"]
}
}
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dragit",
"version": "2.1.1",
"version": "2.1.2",
"description": "Click/tap and drag to scroll content within a container.",
"homepage": "https://github.com/azinasili/dragit",
"author": "Azin Asili <[email protected]>",
Expand All @@ -22,11 +22,14 @@
"url": "https://github.com/azinasili/dragit/issues"
},
"scripts": {
"build": "babel src --presets babel-preset-es2015 --out-dir dist",
"build": "cross-env BABEL_ENV=production babel src -d dist",
"prepublish": "npm run build"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-es2015": "^6.24.1"
"babel-preset-babili": "0.0.12",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"cross-env": "^4.0.0"
}
}

0 comments on commit bf3ab73

Please sign in to comment.