Skip to content
This repository has been archived by the owner on Mar 3, 2018. It is now read-only.

Commit

Permalink
remove build target: web
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulightouch committed Feb 7, 2018
1 parent e259588 commit d32e867
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .electron-vue/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ const Multispinner = require('multispinner')
const mainConfig = require('./webpack.main.config')
const rendererConfig = require('./webpack.renderer.config')
const preloadConfig = require('./webpack.preload.config')
const webConfig = require('./webpack.web.config')

const doneLog = chalk.bgGreen.white(' DONE ') + ' '
const errorLog = chalk.bgRed.white(' ERROR ') + ' '
const okayLog = chalk.bgBlue.white(' OKAY ') + ' '
const isCI = process.env.CI || false

if (process.env.BUILD_TARGET === 'clean') clean()
else if (process.env.BUILD_TARGET === 'web') web()
else build()

function clean () {
Expand Down Expand Up @@ -108,20 +106,6 @@ function pack (config) {
})
}

function web () {
del.sync(['dist/web/*', '!.gitkeep'])
webpack(webConfig, (err, stats) => {
if (err || stats.hasErrors()) console.log(err)

console.log(stats.toString({
chunks: false,
colors: true
}))

process.exit()
})
}

function greeting () {
const cols = process.stdout.columns
let text = ''
Expand Down

0 comments on commit d32e867

Please sign in to comment.