|
@@ -198,20 +198,14 @@ module.exports = [
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- // in react files, svg is loaded as a react component
|
|
|
+ // in ts and tsx files (both of which compile to js),
|
|
|
+ // svg is loaded as a raw string
|
|
|
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
- issuer: { test: /\.jsx$/ },
|
|
|
- use: 'svg-react-loader'
|
|
|
+ issuer: { test: /\.js$/ },
|
|
|
+ use: {
|
|
|
+ loader: 'raw-loader'
|
|
|
+ }
|
|
|
}
|
|
|
- // {
|
|
|
- // // in css files, svg is loaded as a url formatted string
|
|
|
- // test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
- // issuer: { test: /\.js$/ },
|
|
|
- // use: {
|
|
|
- // loader: 'svg-url-loader',
|
|
|
- // options: { encoding: 'none', limit: 10000 }
|
|
|
- // }
|
|
|
- // }
|
|
|
]
|
|
|
},
|
|
|
watchOptions: {
|