Skip to content

Commit

Permalink
fix(typescript): fix typescript + multi-page build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 15, 2018
1 parent b132a3b commit 7e1862f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/@vue/cli-plugin-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ module.exports = (api, options) => {
const useThreads = process.env.NODE_ENV === 'production' && options.parallel

api.chainWebpack(config => {
config.entry('app')
.clear()
.add('./src/main.ts')
if (!options.pages) {
config.entry('app')
.clear()
.add('./src/main.ts')
}

config.resolve
.extensions
Expand Down

0 comments on commit 7e1862f

Please sign in to comment.