text: const path = require("path");
  
  const themeEntries = require('./MapStore2/build/themes.js').themeEntries;
  const extractThemesPlugin = require('./MapStore2/build/themes.js').extractThemesPlugin;
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  const paths = {
      base: __dirname,
      dist: path.join(__dirname, "dist"),
      framework: path.join(__dirname, "MapStore2", "web", "client"),
      code: [path.join(__dirname, "js"), path.join(__dirname, "MapStore2", "web", "client")]
  };
  
  module.exports = require('./MapStore2/build/buildConfig')(
      {
          'MapStore-C179': path.join(__dirname, "js", "app"),
          'MapStore-C179-embedded': path.join(__dirname, "MapStore2", "web", "client", "product", "embedded"),
          'MapStore-C179-api': path.join(__dirname, "MapStore2", "web", "client", "product", "api")
      },
      themeEntries,
      paths,
      extractThemesPlugin,
      true,
      "dist/",
      '.MapStore-C179',
      [
          new HtmlWebpackPlugin({
              template: path.join(__dirname, 'indexTemplate.html'),
              chunks: ['MapStore-C179'],
              inject: true,
              hash: true
          }),
          new HtmlWebpackPlugin({
              template: path.join(__dirname, 'embeddedTemplate.html'),
              chunks: ['MapStore-C179-embedded'],
              inject: true,
              hash: true,
              filename: 'embedded.html'
          }),
          new HtmlWebpackPlugin({
              template: path.join(__dirname, 'apiTemplate.html'),
              chunks: ['MapStore-C179-api'],
              inject: 'head',
              hash: true,
              filename: 'api.html'
          })
      ],
      {
          "@mapstore": path.resolve(__dirname, "MapStore2", "web", "client"),
          "@js": path.resolve(__dirname, "js")
      }
  );
  