Skip to content

Commit 76766ad

Browse files
committed
Only clean out build files when building for production
1 parent 22ec419 commit 76766ad

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import './index.css';
99
import Main from './components/Main';
1010

1111
if (window.ga) {
12-
console.log('attaching error listener');
1312
window.ga('set', {
1413
appName: 'morph',
1514
appVersion: COMMIT_HASH

webpack.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ const VERSION = (() => {
7777
})();
7878

7979
const plugins = [
80-
new CaseSensitivePathsPlugin(),
81-
new CleanWebpackPlugin(['build/**/*'], {
82-
verbose: false
83-
})
80+
new CaseSensitivePathsPlugin()
8481
];
8582

8683
const config = {
@@ -365,6 +362,9 @@ const distConfig = {
365362
}
366363
},
367364
plugins: [
365+
new CleanWebpackPlugin(['build/**/*'], {
366+
verbose: false
367+
}),
368368
new webpack.DefinePlugin({
369369
'process.env.NODE_ENV': JSON.stringify('production'),
370370
DEBUG: false,

0 commit comments

Comments
 (0)