Now, all the variations of comments in ternaries are printed the same way. Fixes #617
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
var inspect = 4 === util.inspect.length
|
|
? // node <= 0.8.x
|
|
(function(v, colors) {
|
|
return util.inspect(v, void 0, void 0, colors);
|
|
})
|
|
: // node > 0.8.x
|
|
(function(v, colors) {
|
|
return util.inspect(v, { colors: colors });
|
|
});
|
|
|
|
var inspect = 4 === util.inspect.length
|
|
? // node <= 0.8.x
|
|
(function(v, colors) {
|
|
return util.inspect(v, void 0, void 0, colors);
|
|
})
|
|
: // node > 0.8.x
|
|
(function(v, colors) {
|
|
return util.inspect(v, { colors: colors });
|
|
});
|
|
|
|
const extractTextPluginOptions = shouldUseRelativeAssetPaths
|
|
// Making sure that the publicPath goes back to to build folder.
|
|
? { publicPath: Array(cssFilename.split('/').length).join('../') } :
|
|
{};
|
|
|
|
const extractTextPluginOptions = shouldUseRelativeAssetPaths
|
|
? // Making sure that the publicPath goes back to to build folder.
|
|
{ publicPath: Array(cssFilename.split("/").length).join("../") }
|
|
: {};
|
|
|
|
const extractTextPluginOptions = shouldUseRelativeAssetPaths // Making sure that the publicPath goes back to to build folder.
|
|
? { publicPath: Array(cssFilename.split("/").length).join("../") }
|
|
: {};
|