Commit fe1ac721 by 张杰

新增图片大小限制

1 parent 863dd31c
...@@ -90,6 +90,7 @@ module.exports = { ...@@ -90,6 +90,7 @@ module.exports = {
test: /\.(png|jpg|gif|svg)$/, test: /\.(png|jpg|gif|svg)$/,
loader: 'file-loader', loader: 'file-loader',
options: { options: {
limit: 10000,
name: 'images/[name].[ext]?[hash]', name: 'images/[name].[ext]?[hash]',
publicPath: resourcesPath publicPath: resourcesPath
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!