This commit is contained in:
Daniel Ternyak 2017-06-18 14:31:02 -05:00
commit ef4c7c8868
1 changed files with 5 additions and 2 deletions

View File

@ -1,16 +1,19 @@
'use strict'
process.env.NODE_ENV = 'production'
const exec = require('child_process').execSync
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const ProgressPlugin = require('webpack/lib/ProgressPlugin')
// const OfflinePlugin = require('offline-plugin')
const base = require('./webpack.base')
const config = require('./config')
const fs = require('fs')
const distFolder = 'dist/';
exec('rm -rf dist/')
if (fs.existsSync(distFolder))
fs.rmdirSync(distFolder)
base.devtool = 'cheap-source-map'
base.module.loaders.push(
{