types(cli): fix WebpackConfig type

This commit is contained in:
chenjiahan
2020-07-04 17:56:47 +08:00
parent 4aff784d65
commit c0308e9b96
6 changed files with 17 additions and 7 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import { VueLoaderPlugin } from 'vue-loader';
import { join } from 'path';
import { existsSync } from 'fs';
import { consola } from '../common/logger';
import { WebpackConfig } from '../common/types';
import {
CWD,
CACHE_DIR,
@@ -61,7 +62,7 @@ if (existsSync(tsconfigPath)) {
);
}
export const baseConfig = {
export const baseConfig: WebpackConfig = {
mode: 'development',
resolve: {
extensions: [...SCRIPT_EXTS, ...STYLE_EXTS],