const path = require("path");

module.exports = {
  module: {
    rules: [
      {
        test: /\/iconic\/svg\/.*\.svg$/,
        use: [
          { loader: path.join(__dirname, '../loaders/iconic_svg_loader.js') }
        ],
        type: 'javascript/auto'
      }
    ]
  },
  resolve: {
    extensions: ['.svg']
  }
}
