diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 3c8975e3..5c1c24ed 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -65,22 +65,14 @@ module.exports = { } }, { - test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, - loader: 'url-loader', + test: /\.(png|jpe?g|gif)(\?.*)?$/, + loader: 'file-loader', exclude: [resolve('src/icons')], options: { limit: 10000, name: utils.assetsPath('img/[name].[hash:7].[ext]') } }, - { - test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('media/[name].[hash:7].[ext]') - } - }, { test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, loader: 'file-loader', diff --git a/package.json b/package.json index f2918086..b0447bcc 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,6 @@ "svg-sprite-loader": "3.9.2", "svgo": "2.8.0", "uglifyjs-webpack-plugin": "1.3.0", - "url-loader": "1.1.2", "vue-jest": "4.0.0-beta.2", "vue-loader": "15.10.0", "vue-style-loader": "4.1.2", diff --git a/yarn.lock b/yarn.lock index fe743211..d451e7db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6850,7 +6850,7 @@ mime@1.6.0: resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== -mime@^2.0.3, mime@^2.4.4: +mime@^2.4.4: version "2.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367" integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== @@ -10254,15 +10254,6 @@ urix@^0.1.0: resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== -url-loader@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-1.1.2.tgz#b971d191b83af693c5e3fea4064be9e1f2d7f8d8" - integrity sha512-dXHkKmw8FhPqu8asTc1puBfe3TehOCo2+RmOOev5suNCIYBcT626kxiWg1NBVkwc4rO8BGa7gP70W7VXuqHrjg== - dependencies: - loader-utils "^1.1.0" - mime "^2.0.3" - schema-utils "^1.0.0" - url-parse@^1.5.10: version "1.5.10" resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1"