mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 19:16:10 +00:00
Fixed trying to improperly delete our dist folder. (#36)
* Fixed trying to improperly delete our dist folder.
This commit is contained in:
parent
37008e9fe9
commit
e0a52ed0f8
@ -7,10 +7,11 @@ 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 rimraf = require('rimraf');
|
||||
const distFolder = 'dist/';
|
||||
|
||||
if (fs.existsSync(distFolder)) fs.rmdirSync(distFolder);
|
||||
// Clear out build folder
|
||||
rimraf.sync(distFolder, {'rmdirSync': true});
|
||||
|
||||
base.devtool = 'cheap-source-map';
|
||||
base.module.loaders.push(
|
||||
|
Loading…
x
Reference in New Issue
Block a user