visionforge/ui/ring/webpack.config.d/02.svg.js

15 lines
480 B
JavaScript
Raw Normal View History

2020-05-16 19:26:28 +03:00
// wrap is useful, because declaring variables in module can be already declared
// module creates own lexical environment
;(function (config) {
const path = require("path");
config.module.rules.push(
{
test: /\.svg$/,
loader: "svg-inline-loader",
options: {removeSVGTagAttrs: false},
include: [
path.resolve(require.resolve("@jetbrains/logos"), "..", "..")
]
}
);
})(config);