Merge pull request #14018 from phated/phated/vue2-init-install-vue-loader

CLI/Vue 2: install vue-loader upon init of vue 2 storybook
This commit is contained in:
Michael Shilman 2021-02-24 23:28:01 +08:00 committed by GitHub
commit 5a913e4c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,9 @@
import { baseGenerator, Generator } from '../baseGenerator';
const generator: Generator = async (packageManager, npmOptions, options) => {
baseGenerator(packageManager, npmOptions, options, 'vue');
baseGenerator(packageManager, npmOptions, options, 'vue', {
extraPackages: ['vue-loader@^15.7.0'],
});
};
export default generator;