Skip to content

Commit d79cc45

Browse files
committed
chore: remove debug flag
1 parent ae725c8 commit d79cc45

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

lib/groups/advanced.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ class AdvancedGroup extends GroupHelper {
4646
const HotModuleReplacementPlugin = require('webpack').HotModuleReplacementPlugin;
4747
this.opts.options.plugins = [new HotModuleReplacementPlugin()];
4848
}
49-
if (args.debug) {
50-
const LoaderOptionsPlugin = require('webpack').LoaderOptionsPlugin;
51-
const loaderPluginVal = new LoaderOptionsPlugin({
52-
debug: true,
53-
});
54-
55-
if (this.opts.options && this.opts.options.plugins) {
56-
this.opts.options.plugins.unshift(loaderPluginVal);
57-
} else {
58-
this.opts.options.plugins = [loaderPluginVal];
59-
}
60-
}
6149
if (args.prefetch) {
6250
const { PrefetchPlugin } = require('webpack');
6351
const prefetchVal = new PrefetchPlugin(null, args.prefetch);

lib/utils/cli-flags.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,6 @@ module.exports = {
135135
group: ADVANCED_GROUP,
136136
description: 'Enables Hot Module Replacement',
137137
},
138-
{
139-
name: 'debug',
140-
type: Boolean,
141-
group: ADVANCED_GROUP,
142-
description: 'Switch loaders to debug mode',
143-
},
144138
{
145139
name: 'sourcemap',
146140
type: String,

test/help/__snapshots__/help-single-arg.test.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Options
3838
-t, --target string Sets the build target
3939
-w, --watch Watch for files changes
4040
-h, --hot Enables Hot Module Replacement
41-
--debug Switch loaders to debug mode
4241
-s, --sourcemap string Determine source maps to use
4342
--prefetch string Prefetch this request
4443
-j, --json Prints result as JSON

0 commit comments

Comments
 (0)