Skip to content

Commit 2b9a750

Browse files
committed
feat: allow specifying additional configs in preset
1 parent 4601cc3 commit 2b9a750

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/@vue/cli-service/generator/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,9 @@ module.exports = (api, options) => {
6666
devDependencies: deps[options.cssPreprocessor]
6767
})
6868
}
69+
70+
// additional tooling configurations
71+
if (options.configs) {
72+
api.extendPackage(options.configs)
73+
}
6974
}

packages/@vue/cli/lib/options.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const presetSchema = createSchema(joi => joi.object().keys({
1515
router: joi.boolean(),
1616
vuex: joi.boolean(),
1717
cssPreprocessor: joi.string().only(['sass', 'less', 'stylus']),
18-
plugins: joi.object().required()
18+
plugins: joi.object().required(),
19+
configs: joi.object()
1920
}))
2021

2122
const schema = createSchema(joi => joi.object().keys({

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy