1
0
mirror of synced 2024-11-25 06:46:02 +03:00

chore: .npmignore & build config

This commit is contained in:
Zaytsev Kirill 2020-10-18 20:20:54 +03:00
parent 578cb0f34b
commit 049e90a128
2 changed files with 7 additions and 2 deletions

5
.npmignore Normal file
View File

@ -0,0 +1,5 @@
.github
.gitignore
/storybook
/node_modules
/build

View File

@ -21,7 +21,7 @@ export default {
'vue-property-decorator': 'vuePropertyDecorator',
},
},
external: ['vue', 'vue-property-decorator'],
external: ['vue'],
plugins: [
resolve({
browser: true,
@ -31,7 +31,7 @@ export default {
vue({ css: true, compileTemplate: true }),
alias({ entries: [{ find: /^@\/(.+)/, replacement: './$1' }] }),
commonjs(),
internal(['is-plain-object', 'nanoid/non-secure', 'is-url']),
internal(['is-plain-object', 'nanoid/non-secure', 'is-url', 'vue-property-decorator']),
terser(),
]
}