Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Specified external deps and global vars
Browse files Browse the repository at this point in the history
  • Loading branch information
romanslonov committed Apr 4, 2019
1 parent 5532928 commit 304e03f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ const baseConfig = {
const external = [
// list external dependencies, exactly the way it is written in the import statement.
// eg. 'jquery'
'fuzzysearch',
'vue',
];
const globals = {
// Provide global variable names to replace your external imports
// eg. jquery: '$'
fuzzysearch: 'fuzzysearch',
vue: 'Vue',
};

export default [
Expand Down
2 changes: 1 addition & 1 deletion dist/modulist-vue.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modulist-vue.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modulist-vue.min.js

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,8 @@
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,vue}": [
"vue-cli-service lint",
"git add"
],
"ignore": [
"**/dist/*.js"
]
"*.{js,vue}": ["vue-cli-service lint", "git add"],
"ignore": ["**/dist/*.js"]
},
"directories": {
"doc": "docs",
Expand Down

0 comments on commit 304e03f

Please sign in to comment.