removed unsafe-inline styles via svgo-loader. fixes #740

This commit is contained in:
Danny Coates 2018-02-26 11:48:28 -08:00
parent 0a0980f9e3
commit 74728782f3
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
4 changed files with 241 additions and 22 deletions

View file

@ -89,12 +89,29 @@ module.exports = {
]
},
{
test: /\.(svg|png|jpg)$/,
test: /\.(png|jpg)$/,
loader: 'file-loader',
options: {
name: '[name].[hash:8].[ext]'
}
},
{
test: /\.svg$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[hash:8].[ext]'
}
},
{
loader: 'svgo-loader',
options: {
plugins: [{ convertStyleToAttrs: true }, { removeTitle: true }]
}
}
]
},
{
test: /\.css$/,
use: ExtractTextPlugin.extract({