text: const path = require('path');
  const ExtractTextPlugin = require('extract-text-webpack-plugin');
  const WriteFilePlugin = require('write-file-webpack-plugin');
  
  module.exports = {
      entry: "./src/index.tsx",
      output: {
          filename: 'LinksPanel.js',
          path: path.resolve(__dirname, 'dist')
      },
      devtool: 'inline-source-map',
      devServer: {
          contentBase: './dist'
      },
      resolve: {
          extensions: [".ts", ".tsx", ".js", ".json"]
      },
      module: {
          rules: [
              { test: /\.tsx?$/, loader: "awesome-typescript-loader" },
              { enforce: "pre", test: /\.js$/, loader: "source-map-loader" },
              { 
                  test:/\.css$/,
                  use: ExtractTextPlugin.extract({
                      fallback: "style-loader",
                      use: "css-loader"
                  }) 
              }
          ]
      },
      externals: {
          "react": "React",
          "react-dom": "ReactDOM"
      },
      plugins: [
          new WriteFilePlugin(),
          new ExtractTextPlugin("LinksPanel.css")
      ]
  };