diff --git a/packages/@vue/cli-service/lib/commands/build/formatStats.js b/packages/@vue/cli-service/lib/commands/build/formatStats.js index dec529c1ef..f683e214c8 100644 --- a/packages/@vue/cli-service/lib/commands/build/formatStats.js +++ b/packages/@vue/cli-service/lib/commands/build/formatStats.js @@ -4,7 +4,6 @@ module.exports = function formatStats (stats, dir, api) { const zlib = require('zlib') const chalk = require('chalk') const ui = require('cliui')({ width: 80 }) - const url = require('url') const json = stats.toJson({ hash: false, @@ -22,7 +21,7 @@ module.exports = function formatStats (stats, dir, api) { const isMinJS = val => /\.min\.js$/.test(val) assets = assets .map(a => { - a.name = url.parse(a.name).pathname + a.name = a.name.split('?')[0] return a }) .filter(a => {