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

Commit 540d77f

Browse files
committed
fix: respect --env.verbose
1 parent f9f0b1b commit 540d77f

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

templates/webpack.angular.js

Lines changed: 2 additions & 1 deletion
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/**" } },

templates/webpack.javascript.js

Lines changed: 3 additions & 2 deletions
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/**" } },

templates/webpack.typescript.js

Lines changed: 3 additions & 2 deletions
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);
@@ -234,7 +235,7 @@ module.exports = env => {
234235
"process": undefined,
235236
}),
236237
// Remove all files from the out dir.
237-
new CleanWebpackPlugin(itemsToClean),
238+
new CleanWebpackPlugin(itemsToClean, { verbose: !!verbose }),
238239
// Copy assets to out dir. Add your own globs as needed.
239240
new CopyWebpackPlugin([
240241
{ from: { glob: "fonts/**" } },

templates/webpack.vue.js

Lines changed: 2 additions & 1 deletion
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;
@@ -236,7 +237,7 @@ module.exports = env => {
236237
"TNS_ENV": JSON.stringify(mode)
237238
}),
238239
// Remove all files from the out dir.
239-
new CleanWebpackPlugin(itemsToClean),
240+
new CleanWebpackPlugin(itemsToClean, { verbose: !!verbose }),
240241
// Copy assets to out dir. Add your own globs as needed.
241242
new CopyWebpackPlugin([
242243
{ from: { glob: "fonts/**" } },

0 commit comments

Comments
 (0)