Skip to content

Commit

Permalink
add index.min.js
Browse files Browse the repository at this point in the history
bsdfzzzy committed Aug 9, 2018
1 parent ae19d5a commit 15decd2
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import {
VueHammer
} from '../index'
} from '../index.min'
import App from './App.vue'

//use the plugin
1 change: 1 addition & 0 deletions index.min.js

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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -3,9 +3,10 @@
"description": "Hammer.js wrapper for Vue 2.x to support some touching operation in the mobile.",
"version": "2.0.0",
"author": "bsdfzzzy@gmail.com",
"main": "index.js",
"main": "index.min.js",
"scripts": {
"build": "./node_modules/.bin/webpack --config webpack.config.js"
"build": "./node_modules/.bin/webpack --config webpack.config.js",
"prepub": "babel index.js --out-file index.min.js && uglifyjs index.min.js -o index.min.js"
},
"dependencies": {
"hammerjs": "^2.0.8"
@@ -39,4 +40,4 @@
"url": "https://github.com/bsdfzzzy/vue2-hammer/issues"
},
"homepage": "https://github.com/bsdfzzzy/vue2-hammer#readme"
}
}

0 comments on commit 15decd2

Please sign in to comment.