Skip to content

Commit

Permalink
feat(file-loader): user shorter base64 names for image assets
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Feb 13, 2019
1 parent 6b34826 commit 7dd32ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ function WebpackConfig(project: WebpackConfig.Project): (env: any) => Configurat
},
{
test: /\.(png|jpe?g|gif)$/,
use: "file-loader"
use: {
loader: "file-loader",
options: {
name: "[sha256:hash:base64:8].[ext]"
}
}
}
]
},
Expand Down

0 comments on commit 7dd32ff

Please sign in to comment.