From 1eaf4087728241f54c14737c20a02b171be09bad Mon Sep 17 00:00:00 2001 From: Oleg Bogdanov Date: Thu, 18 May 2017 00:49:18 +1000 Subject: [PATCH] Update webpack.prod.js So it will work in windows(wsl/bashOnUnuntu) --- template/build/webpack.prod.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/build/webpack.prod.js b/template/build/webpack.prod.js index cc0fe8d..cb0d2b5 100644 --- a/template/build/webpack.prod.js +++ b/template/build/webpack.prod.js @@ -13,10 +13,10 @@ const config = require('./config') if (config.electron) { // remove dist folder in electron mode - exec('rm -rf app/assets/') + exec('bash -c "rm -rf app/assets/"') } else { // remove dist folder in web app mode - exec('rm -rf dist/') + exec('bash -c "rm -rf dist/"') // use source-map in web app mode base.devtool = 'source-map' }