mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge pull request #2430 from Human-Connection/load-svgs-with-babel
Use babel-loader with vue-svg-loader
This commit is contained in:
commit
942e74163e
@ -258,6 +258,9 @@ export default {
|
||||
svgRule.test = /\.(png|jpe?g|gif|webp)$/
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
use: [
|
||||
'babel-loader',
|
||||
{
|
||||
loader: 'vue-svg-loader',
|
||||
options: {
|
||||
svgo: {
|
||||
@ -271,6 +274,8 @@ export default {
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@ -41,6 +41,9 @@ module.exports = async ({ config, mode }) => {
|
||||
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
use: [
|
||||
'babel-loader',
|
||||
{
|
||||
loader: 'vue-svg-loader',
|
||||
options: {
|
||||
svgo: {
|
||||
@ -54,6 +57,8 @@ module.exports = async ({ config, mode }) => {
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
config.resolve.alias = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user