Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 2aa1f60

Browse files
committed
fix: respect --env.verbose
1 parent abaf6f4 commit 2aa1f60

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

Diff for: templates/webpack.angular.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module.exports = env => {
5050
hiddenSourceMap, // --env.hiddenSourceMap
5151
hmr, // --env.hmr,
5252
unitTesting, // --env.unitTesting
53+
verbose, // --env.verbose
5354
} = env;
5455

5556
const isAnySourceMapEnabled = !!sourceMap || !!hiddenSourceMap;
@@ -262,7 +263,7 @@ module.exports = env => {
262263
"process": undefined,
263264
}),
264265
// Remove all files from the out dir.
265-
new CleanWebpackPlugin(itemsToClean),
266+
new CleanWebpackPlugin(itemsToClean, { verbose: !!verbose }),
266267
// Copy assets to out dir. Add your own globs as needed.
267268
new CopyWebpackPlugin([
268269
{ from: { glob: "fonts/**" } },

Diff for: templates/webpack.javascript.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ module.exports = env => {
4343
sourceMap, // --env.sourceMap
4444
hiddenSourceMap, // --env.hiddenSourceMap
4545
hmr, // --env.hmr,
46-
unitTesting, // --env.unitTesting
46+
unitTesting, // --env.unitTesting,
47+
verbose, // --env.verbose
4748
} = env;
4849

4950
const isAnySourceMapEnabled = !!sourceMap || !!hiddenSourceMap;
@@ -213,7 +214,7 @@ module.exports = env => {
213214
"process": undefined,
214215
}),
215216
// Remove all files from the out dir.
216-
new CleanWebpackPlugin(itemsToClean),
217+
new CleanWebpackPlugin(itemsToClean, { verbose: !!verbose }),
217218
// Copy assets to out dir. Add your own globs as needed.
218219
new CopyWebpackPlugin([
219220
{ from: { glob: "fonts/**" } },

Diff for: templates/webpack.typescript.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ module.exports = env => {
4444
sourceMap, // --env.sourceMap
4545
hiddenSourceMap, // --env.hiddenSourceMap
4646
hmr, // --env.hmr,
47-
unitTesting, // --env.unitTesting
47+
unitTesting, // --env.unitTesting,
48+
verbose, // --env.verbose
4849
} = env;
4950
const isAnySourceMapEnabled = !!sourceMap || !!hiddenSourceMap;
5051
const externals = nsWebpack.getConvertedExternals(env.externals);
@@ -237,7 +238,7 @@ module.exports = env => {
237238
"process": undefined,
238239
}),
239240
// Remove all files from the out dir.
240-
new CleanWebpackPlugin(itemsToClean),
241+
new CleanWebpackPlugin(itemsToClean, { verbose: !!verbose }),
241242
// Copy assets to out dir. Add your own globs as needed.
242243
new CopyWebpackPlugin([
243244
{ from: { glob: "fonts/**" } },

Diff for: templates/webpack.vue.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ module.exports = env => {
4848
sourceMap, // --env.sourceMap
4949
hiddenSourceMap, // --env.hiddenSourceMap
5050
unitTesting, // --env.unitTesting
51+
verbose, // --env.verbose
5152
} = env;
5253

5354
const isAnySourceMapEnabled = !!sourceMap || !!hiddenSourceMap;
@@ -239,7 +240,7 @@ module.exports = env => {
239240
"TNS_ENV": JSON.stringify(mode)
240241
}),
241242
// Remove all files from the out dir.
242-
new CleanWebpackPlugin(itemsToClean),
243+
new CleanWebpackPlugin(itemsToClean, { verbose: !!verbose }),
243244
// Copy assets to out dir. Add your own globs as needed.
244245
new CopyWebpackPlugin([
245246
{ from: { glob: "fonts/**" } },

0 commit comments

Comments
 (0)