Skip to content

Commit 2913303

Browse files
committed
stop removal of console statement in babili, better for production debugging (SimulatedGREG#347)
1 parent f28f53a commit 2913303

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

template/.electron-vue/webpack.main.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ if (process.env.NODE_ENV !== 'production') {
7575
*/
7676
if (process.env.NODE_ENV === 'production') {
7777
mainConfig.plugins.push(
78-
new BabiliWebpackPlugin({
79-
removeConsole: true,
80-
removeDebugger: true
81-
}),
78+
new BabiliWebpackPlugin(),
8279
new webpack.DefinePlugin({
8380
'process.env.NODE_ENV': '"production"'
8481
})

template/.electron-vue/webpack.renderer.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ if (process.env.NODE_ENV === 'production') {
160160
rendererConfig.devtool = ''
161161

162162
rendererConfig.plugins.push(
163-
new BabiliWebpackPlugin({
164-
removeConsole: true,
165-
removeDebugger: true
166-
}),
163+
new BabiliWebpackPlugin(),
167164
new CopyWebpackPlugin([
168165
{
169166
from: path.join(__dirname, '../static'),

template/.electron-vue/webpack.web.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ if (process.env.NODE_ENV === 'production') {
121121
webConfig.devtool = ''
122122

123123
webConfig.plugins.push(
124-
new BabiliWebpackPlugin({
125-
removeConsole: true,
126-
removeDebugger: true
127-
}),
124+
new BabiliWebpackPlugin(),
128125
new CopyWebpackPlugin([
129126
{
130127
from: path.join(__dirname, '../static'),

0 commit comments

Comments
 (0)