Refactor entry file

This commit is contained in:
Pig Fang 2019-04-27 22:06:09 +08:00
parent f731c672bc
commit 8a2aaccabe
3 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ declare module 'vue/types/vue' {
post(url: string, data?: object): { code?: number, message?: string } post(url: string, data?: object): { code?: number, message?: string }
} }
$route: string[] $route: RegExpExecArray | null
} }
} }

View File

@ -12,7 +12,7 @@ const devMode = !process.argv.includes('-p')
const config = { const config = {
mode: devMode ? 'development' : 'production', mode: devMode ? 'development' : 'production',
entry: { entry: {
index: './resources/assets/src/index.js', index: './resources/assets/src/index.ts',
'check-updates': './resources/assets/src/scripts/check-updates.ts', 'check-updates': './resources/assets/src/scripts/check-updates.ts',
style: [ style: [
'bootstrap/dist/css/bootstrap.min.css', 'bootstrap/dist/css/bootstrap.min.css',