mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-22 08:10:34 +03:00
feat: add browser build without ssr code
This commit is contained in:
@@ -14,7 +14,7 @@ const banner = `/**
|
||||
`.replace(/ {4}/gm, '').trim()
|
||||
|
||||
const baseConfig = {
|
||||
input: 'src/index.js',
|
||||
input: 'src/browser.js',
|
||||
output: {
|
||||
file: pkg.web,
|
||||
format: 'umd',
|
||||
@@ -44,6 +44,7 @@ export default [{
|
||||
]
|
||||
}, {
|
||||
...baseConfig,
|
||||
input: 'src/index.js',
|
||||
output: {
|
||||
...baseConfig.output,
|
||||
file: pkg.main,
|
||||
|
||||
Reference in New Issue
Block a user