Skip to content

Commit

Permalink
修复打包 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
XBT1 committed Nov 18, 2017
1 parent e1c5eb2 commit 1b7595c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions examples/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import Vue from 'vue'
import App from './App.vue'

import contentmenu from '../src'
import contextmenu from '../src'
import '../src/styles/index.styl'

Vue.use(contentmenu)
// import contextmenu from 'v-contextmenu'
// import 'v-contextmenu/dist/index.css'

Vue.use(contextmenu)

new Vue({
el: '#app',
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default {
output: {
file: 'dist/index.common.js',
format: 'cjs',
exports: 'named',
},
external: [ 'vue' ],
plugins: [
vue(),
copy({
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Vue from 'vue'

import directive from './directive'

import Contextmenu from './components/Contextmenu.vue'
Expand Down

0 comments on commit 1b7595c

Please sign in to comment.