Closed iainheng closed 5 years ago
You could do something based on the environment, in tasks/build.js
.
For example, in Maizzle, I create a variable:
let prettyURLs = config.pretty == false ? '--pretty=false ' : '';
and then I use it in the command.get()
:
command.get(bin.path() + ' build ' + prettyURLs + env, (error, stdout, stderr) => {
That's a great solution, you're also free to add --pretty=false
directly to the build
command in tasks/build.js
if you don't need it controlled by environment.
How do I disable pretty URL
--pretty=false
while developing withnpm run watch
?