summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-11-26 23:21:02 +0800
committerWu Cheng-Han2016-11-26 23:21:02 +0800
commit197292ba665c07c7df4da8dfe636a1f49127e254 (patch)
treeb0cdaef0a9725c7fd3d12bdb1e7965218596cf94
parentda42f735d9acd5ea3808304b35f46bf155a599ed (diff)
Fix some missing resources packing loaders and test regex in webpack
Diffstat (limited to '')
-rw-r--r--webpackBaseConfig.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js
index da105ee2..1aaf6c75 100644
--- a/webpackBaseConfig.js
+++ b/webpackBaseConfig.js
@@ -283,7 +283,7 @@ module.exports = {
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
loader: "file"
}, {
- test: /\.(woff|woff2)$/,
+ test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
loader: "url?prefix=font/&limit=5000"
}, {
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
@@ -291,6 +291,12 @@ module.exports = {
}, {
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
loader: "url?limit=10000&mimetype=image/svg+xml"
+ }, {
+ test: /\.png(\?v=\d+\.\d+\.\d+)?$/,
+ loader: "url?limit=10000&mimetype=image/png"
+ }, {
+ test: /\.gif(\?v=\d+\.\d+\.\d+)?$/,
+ loader: "url?limit=10000&mimetype=image/gif"
}]
},